Hi all,
Is it possible for me to adjust the paths to Nucache, and any other cache used, in Umbraco 8. How? Same goes with any indexes.
Thing is, I don't want to repopulate the caches/indexes when deploying with Octopus. In v7 we adjusted the cache and indexes to a static resource folder. I would like to do the same with v8.
Cache paths in config?
Hi all, Is it possible for me to adjust the paths to Nucache, and any other cache used, in Umbraco 8. How? Same goes with any indexes.
Thing is, I don't want to repopulate the caches/indexes when deploying with Octopus. In v7 we adjusted the cache and indexes to a static resource folder. I would like to do the same with v8.
Thanks!
Hi,
It seems that NuCache uses the setting
LocalTempPath
to figure out where to store it's files.https://github.com/umbraco/Umbraco-CMS/blob/91c52cffc8b7c70dc956f6c6610460be2d1adc51/src/Umbraco.Web/PublishedCache/NuCache/PublishedSnapshotService.cs#L279
The same setting is used by others components to, so I would suggest you do a bit of testing before changing it :)
In order to change it, you would need to register your own implementation of
IGlobalSettings
, since the build in one doesn't allow you to set the value ofLocalTempPath
, but rather control "where" it will be stored (AspNetTemp, EnvironmentTemp or ~/AppData/Temp) : https://github.com/umbraco/Umbraco-CMS/blob/91c52cffc8b7c70dc956f6c6610460be2d1adc51/src/Umbraco.Core/Configuration/GlobalSettings.cs#L287is working on a reply...