I'm trying to figure out when the temp folder gets cleaned.
Talking about this setting in Sitecore.Config
:
`<sc.variable name="tempFolder" value="/temp"/>`
From what I found, there is a CleanupAgent
in Sitecore.config
defined for clearing the diagnostics folder in temp. But I haven't found anything that clears other folders or files in the temp folder.
Conclusion: they don't get deleted?
Folder examples are: __UpgradeHistory, IconCache, Install
<!-- Agent to clean up work files -->
<agent type="Sitecore.Tasks.CleanupAgent" method="Run" interval="06:00:00">
<!-- Specifies files to be cleaned up.
If rolling="true", [minCount] and [maxCount] will be ignored.
[minAge] and [maxAge] must be specified as [days.]hh:mm:ss. The default value
of [minAge] is 30 minutes.
[strategy]: number of files within hour, day, week, month, year
[recursive=true|false]: descend folders?
-->
<files hint="raw:AddCommand">
<remove folder="$(dataFolder)/logs" pattern="*log.*.txt" maxAge="30.00:00:00"/>
<remove folder="$(dataFolder)/viewstate" pattern="*.txt" maxAge="2.00:00:00" recursive="true"/>
<remove folder="$(dataFolder)/Dashboard reports" pattern="*.*" maxAge="2.00:00:00" recursive="true"/>
<remove folder="$(tempFolder)/diagnostics" pattern="*.*" maxAge="00:10:00" recursive="true"/>
<remove folder="/App_Data/MediaCache" pattern="*.*" maxAge="90.00:00:00" recursive="true"/>
</files>
</agent>
Is there an overview of when what gets deleted/invalidated in the temp folder?