We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 12512
    • 42 Posts
    Hi all,

    during development I often find that my changes to a page don’t show in the browser because of the cache and therefore always hit either the "Clear Cache" button or I uncheck "Cachable" option for the pages I am working on.

    Is there a global cache setting somewhere? It think it would be great to be able to globally disable the cache for development purposes.

    Henrik
      • 33337
      • 3,975 Posts
        Zaigham R - MODX Professional | Skype | Email | Twitter

        Digging the interwebs for #MODX gems and bringing it to you. modx.link
        • 26903
        • 1,336 Posts
        There’s a setting in the system configuration named ’cacheable default’, if you set this to no it will disable caching of documents on creation. It doesn’t act retrospectively, any documents you’ve already created will need to be set manually from the document edit pane. Other than that us the ’!’ notation to stop snippets, chunks etc. being cached, i.e. change ’[[’ say to ’[!’. I use these settings on my dev system.
          Use MODx, or the cat gets it!
          • 12512
          • 42 Posts
          Quote from: zi at Oct 25, 2008, 05:33 AM

          This will help you...

          http://modxcms.com/forums/index.php/topic,870.msg5517.html#msg5517

          regards.

          Thank you so much. That info is exactly what I was after. I already wrote the simple CacheDisable plugin described in above post and there I go.