We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 12512
    • 42 Posts
    Certainly an option, and that is what I am doing from now on for all new stuff. It’s only the pain to go through all the existing doc trees and turn the cachable option off and later back on.
    Would have been nice if the proposed plugin would have actually worked. But it’s not a big drama.
      • 3749
      • 24,544 Posts
      You could do it in phpMyAdmin pretty easily and, if you want to cache ALL pages, a single SQL statment would change them all in a few seconds.

      Also, if you tried it with a snippet -- that’s where you went wrong. The solution above has to be in a plugin. It certainly looks like it should work. You’d have to clear the site cache and your browser cache after creating it.
        Did I help you? Buy me a beer
        Get my Book: MODX:The Official Guide
        MODX info for everyone: http://bobsguides.com/modx.html
        My MODX Extras
        Bob's Guides is now hosted at A2 MODX Hosting
        • 12512
        • 42 Posts
        Meant plugin in above post (as snippets cannot be tied to events).

        The phpMyAdmin approach would be OK to clear the chacheable attribute, but not to enable as for some pages the cache must not be enabled due to the nature of their dynamic content.