Some temp files are not cleared

40 views
Skip to first unread message

Leykekhman, Boris

unread,
Dec 8, 2011, 2:59:51 PM12/8/11
to cs-s...@googlegroups.com
Hi Oleg,

I have files with the names like below left in CSSCRIPT\Cache undeleted.
1a6e2b7d-ed49-4490-bc77-eceac4a59f1d.tmp.compiled
1a6e2b7d-ed49-4490-bc77-eceac4a59f1d.attr.g.cs

Is there a way to autodelete them?

Thank you in advance,

/Boris

Oleg Shilo

unread,
Dec 10, 2011, 7:07:55 AM12/10/11
to cs-s...@googlegroups.com
Hi Boris,
 
Sorry for the delay.
 
Thank you for your feedback.
 
The cache directory is is not supposed to be deleted or cleared. By default the caching is enabled and the cached scripts are created and kept on the PC to speed up the script loading. The approach is very similar to the Python "compiled scripts".   
 
If for whatever reason you want to remove the cache directory you can do it by modifying the <cs-script>\Lib\clearTemp.cs script, which is run periodically and it is the routine responsible for the cleaning all truly temporary files (not the cache, but you can extend it to handle cache as well).
 
Though in this case why would you need Caching at all? You can disable it if you want. While I see no reason for this you are of course free to do so.
 
Cheers,
Oleg Shilo
--------------------------------------------------------------------------------------------
Internet: http://www.csscript.net
E-Mail: csscript...@gmail.com



Reply all
Reply to author
Forward
0 new messages