We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 3749
    • 24,544 Posts
    This has been bugging me for a while. Every document has an Empty cache checkbox, the value of which is stored somewhere in the DB (has to be, because it’s sticky), but I can’t find any field in the site_content table that corresponds to it. Where is that page setting stored?
      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
      • 21257 MODX Staff
      • 730 Posts
      BobRay, it’s not acting sticky for me, in latest Evolution anyway. Just tried a few tests, multiple documents, and it always comes back with the checkbox checked on. Ah, well actually if you look at mutate_content.dynamic.php, you’ll see it’s hard-coded to be on.

      .. line 738 ...
      <td><input name="syncsitecheck" type="checkbox" class="checkbox" checked="checked" onclick="changestate(document.mutate.syncsite);" />
      


      .. and both 739 and 768 are the same ...
      <input type="hidden" name="syncsite" value="1" />
      

        Mike Schell
        Lead Developer, MODX Cloud
        Email: [email protected]
        GitHub: https://github.com/netProphET/
        Twitter: @mkschell
        • 21257 MODX Staff
        • 730 Posts
        Also doesn’t seem sticky in Revo. It will retain it’s setting between saves, but if you leave the page and come back, the checkbox will be set again. (Unless this has changed recently... the version I’m looking at is a couple of weeks back.)
          Mike Schell
          Lead Developer, MODX Cloud
          Email: [email protected]
          GitHub: https://github.com/netProphET/
          Twitter: @mkschell
          • 3749
          • 24,544 Posts
          Hmmm . . . I don’t see any field for it in site_content in 0.9.6 either. Maybe it’s intended to be temporary and just operate in that editing session.

          That would solve the mystery.
            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
            • 28042 ☆ A M B ☆
            • 24,524 Posts
            Must be, because it doesn’t get saved anywhere, the POST value just gets checked and if it’s 1 the cache is cleared.
              Studying MODX in the desert - http://sottwell.com
              Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
              Join the Slack Community - http://modx.org
              • 22303 MODX Staff
              • 10,725 Posts
              That’s correct; it’s just an option to be applied at save time (i.e. after saving should we clear the cache or keep it until I make some other changes)...
                • 3749
                • 24,544 Posts
                I don’t have a stopwatch, but the save times seem to be identical and having Empty cache checked doesn’t appear to clear the site cache (clearing the cache from the Site menu right afterward shows a ton of stuff in the cache). I wonder if it should either clear the entire site cache, or be removed from the panel and always clear the page cache on save?
                  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
                  • 22303 MODX Staff
                  • 10,725 Posts
                  Quote from: BobRay at Jun 09, 2009, 04:38 PM

                  I don’t have a stopwatch, but the save times seem to be identical and having Empty cache checked doesn’t appear to clear the site cache (clearing the cache from the Site menu right afterward shows a ton of stuff in the cache). I wonder if it should either clear the entire site cache, or be removed from the panel and always clear the page cache on save?
                  I want to expand the options actually, but we can hide these from normal users; maybe make it a dialog for advanced options (i.e. clearing various parts of the cache, the page, a context, database caches, etc.). But I think the current checkbox should stay and work properly (i.e. it should clear the cache of the context( s ) it is a part of in addition to the page cache, if checked).
                    • 3749
                    • 24,544 Posts
                    Quote from: OpenGeek at Jun 09, 2009, 04:45 PM

                    Quote from: BobRay at Jun 09, 2009, 04:38 PM

                    I don’t have a stopwatch, but the save times seem to be identical and having Empty cache checked doesn’t appear to clear the site cache (clearing the cache from the Site menu right afterward shows a ton of stuff in the cache). I wonder if it should either clear the entire site cache, or be removed from the panel and always clear the page cache on save?
                    I want to expand the options actually, but we can hide these from normal users; maybe make it a dialog for advanced options (i.e. clearing various parts of the cache, the page, a context, database caches, etc.). But I think the current checkbox should stay and work properly (i.e. it should clear the cache of the context( s ) it is a part of in addition to the page cache, if checked).

                    I agree with you on the current checkbox. I’d like to see the expanded options be completely invisible by default and made visible via a system setting since they’ll mainly be used by quite advanced users (or on the advice of advanced users for diagnostic purposes) and will just scare and confuse regular users. wink
                      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