We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 18608
    • 112 Posts
    I'm having an issue with clear cache not working on Revo 2.3.2 hosted on modxcloud.

    I'm not getting anything from the error log, and in inspector I can see that a lot of request are being made to "system/clearcache" but that they eventually gets cancelled.

    The console just reports the standard "working". The cache doesn't get cleared - I have to do a manual delete of the files in the cache directory to clear it.

    The server logs reports:
    [03-Nov-2014 15:07:47 Europe/Copenhagen] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /www/core/xpdo/cache/xpdocachemanager.class.php on line 473
    [03-Nov-2014 15:07:47 Europe/Copenhagen] PHP Fatal error: Undefined class constant 'LOG_LEVEL_ERROR' in /www/core/model/modx/error/moderrorhandler.class.php on line 111


    Does anyone have an idea on what might be causing the xpdocachemanager.class.php to take that long or what I should investigate further?
      Mathias Dannevang | Webdesigner at dannevang.org | Tweets @dannevang
      • 42153 ☆ A M B ☆
      • 27 Posts
      Hi mathias,

      is it just the core/cache folder or other folders too?
      Just wondering: do all your cache folders (phpthumb etc) have the right permissions? You might want to try chmoding 777 to all of them.

      As a workaround you can also try this Extra: CacheClear by Bob Ray. http://modx.com/extras/package/cacheclear
        • 18608
        • 112 Posts
        Hi Jorgen,

        Thank you for your reply!

        Not sure I understand you regarding other folders too?

        I had already checked for permission issues, but that wasn't the case. And I think I would be able to see it in the error log too, if that was the case...

        I know Bob's extra and it can be a workaround, but I would really like to get to the bottom of what is creating the problem now.
          Mathias Dannevang | Webdesigner at dannevang.org | Tweets @dannevang
          • 3749
          • 24,544 Posts
          If my snippet runs, it can't be a permission problem.

          That line in the CacheManager class is the beginning of a recursive function (deleteTree()), so maybe something is making it go on endlessly. The other error means that $modx has gone away (no idea why that would be).

          If the tree were corrupted, I'd expect running my snippet to fix things. If it doesn't, I don't know what to suggest.

          It's possible that you just caught a time when the Cloud server was very slow.
            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