Try our conversational search powered by Generative AI!

Should the SharePoint VirtualPathWssProvider automatically delete cache items from disk when they have expired?

Vote:
 

In my installation it doesnt appear to be. I cannot see any scheduled jobs that would would clear these files up. Is it safe to just delete them manually?

#62179
Oct 16, 2012 12:43
Vote:
 

Information about cached file content is stored in HTTP runtime cache when caching is enabled. Cached file should be removed form disk automatically when cache is expired.

Provider should reload file content from SharePoint if it cannot open cached file in temporary folder. So you can try to remove/move/rename cached file and check if you get expected file from SharePoint.

You can set cache expiration time in seconds using VPP configuration parameter cacheExpirationTime. It is set to 10 seconds by default if it is not defined in VPP settings.

#62199
Oct 16, 2012 16:08
Vote:
 

Thanks Dmytro - In our instance, it does not seem the files in the cache folder are removed all the time. It sounds like we can safely delete files from this folder and if the items we delete are active cache items, the provider should handle it.

#62301
Oct 19, 2012 16:46
Vote:
 

Yes, it should get a file from SharePoint and cache it again.

#62305
Oct 19, 2012 19:01
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.