Why not this?
code:
$key='HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Cache'

IF '00000000'<>READVALUE($key,'Persistent')
$RC=WRITEVALUE($key,'Persistent','00000000','REG_BINARY')
ENDIF

If you go to - HKLM\SOFTWARE\Microsoft\Internet Explorer\AdvancedOptions\CRYPTO\CACHE_FLUSH

You will get a description of what this about. [Wink]

Thanks,

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's