The solution to delete the amounting cache dlls via an automated task, preferably nightly, schedule it so it does not clash with publishing or user access time period.
7.x to 9.x SP1 (using .NET 1.1)
Create "Clear_.NET_Temp_Cache.bat" in [MS Installation Directory]\ASP\Plugins
c: cd "C:\Windows\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\cms" del /S /Q *
9.x SP2 to 10.x (using .NET 3.5)
Create "Clear_.NET_Temp_Cache.bat" in [MS Installation Directory]\ASP\Plugins
c: cd "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\cms" del /S /Q *
Create User-defined Job
Create user-defined job that runs nightly, schedule it so it does not conflict with existing publishing time.
Configure user-defined job to "External application", and provide path to aforementioned .bat file
For Management Server Clusters
N user-defined jobs for N Management Servers in the cluster
Hi Jian,
ReplyDeleteAm i right to assume this would still be an issue for v11?
- Morgan
Hi Morgan,
DeleteI believe so due to how page builder operates, generating unique URL based on access time. .NET treats unique URL as unique page and creates different cache .dll each time.
Hi,
Deletefor V11 current HF the timestamps used in URLs are eleminated. Therefore the amount of temp-files might be a bit smaller...
Great idea, I have a scheduled task which clears out all the rdexecute and preexecute files from my folders (on my dev machine as we run with the 1280 flag fo debugging etc). Its just in a windows sched task at the moment but I think Im going to change it to a reddot task and add in this as well just to be extra tidy.
ReplyDeleteHi Jian,
ReplyDeleteI try this on my V11-development enviroment with this batch file content:
cd "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\cms"
del /S /Q *
because the ApplikationPool for Preexecute was set to V4 of the .Net Framework. Now I get the error cannot not read redirect.config in my iis manager and the cms is not working anymore.
Strange... it looks like that the content of the C:\Windows\System32\inetsrv\config dir where deleted instead.
DeleteHi,
DeleteI can't seem to be able to replicate the issue on my v11 environment
-Jian