We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 4703
    • 5 Posts
    I’m new to MODx... so please be understanding if this is a dumb question wink.

    I’ve marked my documents as cacheable, but they all say "This document has not (yet) been cached." Is there something I need to do in order to cache documents?

    Thanks.
      • 18397
      • 3,250 Posts
      It takes one page load for the document to cache. Once the page has been requested, MODx will cache the page so long as assets/cache is writeable.
        • 4703
        • 5 Posts
        Ok, I’ve found a solution to my problem, although it’s a hack. If I edit siteCache.idx.php and delete the content (except for the first 100 lines or so, which are page definitions), pages become cached (I can see files being added to assets/cache). However, once I clear the cache through the MODx admin panel, all the content comes back into siteCache.idx.php. (The content appears to be stuff for snippets that I don’t use anyways) but once this happens, none of my pages are cached anymore.

        Is the "siteCache" file somehow keeping my pages from being cached? Is this a bug, or am I supposed to do something else to enable caching?

        I’m using MODx 0.9.5, PHP 5, and MySQL 14.12.
          • 25663 MODX Staff
          • 12,272 Posts
          Do not edit the siteCache or .idx files or you’re asking for problems most likely. I suspect you have the template switcher plugin installed. Delete it.
            Ryan Thrash, MODX Co-Founder
            Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
            • 4703
            • 5 Posts
            Thanks... that did the trick! I restored my siteCache file from a backup and deleted the template switcher plugin. Pages are being cached now. Thanks!
              • 24719
              • 194 Posts
              good info, thanks.
                • 27376
                • 576 Posts
                [tt]siteCache.idx.php[/tt] is recreated every time cache is cleared, but editing it is a big no-no smiley
                  • 28685
                  • 3 Posts
                  Thanks too.
                  Removing this plugin was the trick.
                  Maybe it should be not included with the default ModX release, not to confuse beginners like me rolleyes

                  Great job anyway.
                    • 10487 MODX Staff
                    • 1,535 Posts
                    Maybe it should be not included with the default ModX release, not to confuse beginners like me
                    Have a guess at what we’ve gone and done for the 0.9.6 release wink
                      Garry Nutting
                      Senior Developer
                      MODX, LLC

                      Email: [email protected]
                      Twitter: @garryn
                      Web: modx.com
                      • 28685
                      • 3 Posts
                      Quote from: garryn at May 11, 2007, 04:59 PM
                      Have a guess at what we’ve gone and done for the 0.9.6 release wink

                      You’re too quick cool
                      Is there a page where we can see the forecast improvements ? Can’t find anything else that the roadmap page... Anything more precise ?