Cache tuning

Hello everyone,

I hope you had a good start into the new year !

We are still working on the performance problem and have 2 more questions:

* In which cases does the cache become invalid ? Is this e.g. scheduled and if so, with which setting can this be configured ?

* Is there a method to rebuild the cache ? Keyword : WarmUp.

Thanks in advance for your answers.

  • 215
  • More
Replies (4)
    • In which cases does the cache become invalid ? Is this e.g. scheduled and if so, with which setting can this be configured ?

      There are different types of cache, each of them is invalidated using different triggers, usually caches are cleared at different times depending on the situation, like data update. However all caches (in caches folders and in user's browsers) by changing revision number in Studio > Developer > Settings

      Is there a method to rebuild the cache ? Keyword : WarmUp.

      Caches are building upon first access, for example pages - different pages have own caches, but generally if you browse several main pages it will rebuild caches for them, it will include caches for these individual pages and some common caches as well.

      • Hello @Alex T⚜️ ,

        thanks for your reply and the note about the revision number. We were able to reproduce that the cache_public is rebuilt by changing the revision number. This can either be done manually or the revision number changes automatically when you enable or install a module.

        And of course the cache_public is cleared when you click on the corresponding clear cache links in the Studio Dashboard. 🙂

        We have found another trigger in the cronjobs. In the BxDolCronPruning class, the cache_public folder is also selected in the cleanTmpFolders function to remove cached LESS, CSS and JS files. As this CronJob runs once a night, the above-mentioned files are removed every night by specifying '3600' in the $aDirsToClean array.

        Is it possible to leave the LESS, CSS and JS files in the cache for longer, as they rarely change, at least in our installation, and if they do you can also trigger the cache cleanup manually. If we increase the value '3600' to e.g. '2592000', will this have any side effects?

        • Yes, you can change this value, however you will need to reapply this change sometimes after updates.

          • A short feedback on this topic. We have removed the cronjob for the daily update of the CSS, LESS and JS files and only update these files manually. 

            As our installation is spread over several servers, this brings a significant increase in performance.

            Login or Join to comment.