Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Anders Brohäll 295 posts 561 karma points c-trib
    Mar 10, 2019 @ 14:52
    Anders Brohäll
    1

    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!

  • Søren Gregersen 441 posts 1884 karma points MVP 2x c-trib
    Mar 10, 2019 @ 18:12
    Søren Gregersen
    0

    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 of LocalTempPath, 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#L287

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies