We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 7253
    • 97 Posts
    Hi,
    I upgraded a revo 2.0.8-pl install to 2.1-rc4, which went fine (see my other thread about installer warnings: http://modxcms.com/forums/index.php/topic,64268.0.html, although I’m sure it’s completely unrelated to this).

    I then tried moving the site to a new server, and ran into this error in the manager:

    Could not find action file at: /path/to/manager/controllers/default/welcome.php

    as described here (http://rtfm.modx.com/display/revolution20/Moving+Your+Site+to+a+New+Server, under the ’On the New Server’ section). The path in the error is the path on the old, local server, not the new, remote one.

    I’d followed the instructions on that page for doing the move, as I have many times before for 2.0. This time I forgot to clear the cache on the local server, before backing up and copying the files and database over. This has never caused a problem on 2.0 - you get that message on login, then click clear cache and flush permissions and refresh and it’s sorted.

    However this time, I just get this (http://modxcms.com/forums/index.php/topic,64330.0.html) and no improvement - still got the error message. Couldn’t get rid of it whatever I did. I eventually had a poke about in the /core/cache folder, to see how complex it might be to clear the cache manually. Making an educated guess, I opened up /core/cache/action_map/mgr/actions.cache.php - and sure enough, it was full of the old path names. I tried setting the /core/cache/ folder to 0777 and clearing, but no luck.

    Deleting that file seemed to fix the issue, though.

    Is there a way to manually clear the cache on revo? Can I just delete /core/cache, or will that break stuff? I tried renaming it from /core/cache to /core/_cache, and it seemed to get re-created and everything seems to work fine - is it? It’s fixed my problem, but is it ok to do this?

    Cheers,
    Dunc

      • 29964
      • 2 Posts
      I have read that elsewhere that this is the way to clear the cache manually and it works fine for me.
        • 32699 ☆ A M B ☆
        • 427 Posts
        Yes, this is fine
        You can delete the old cache.

        As you found out, MODX will update and create it on the fly.

          Get your copy of MODX Revolution Building the Web Your Way http://www.sanitypress.com/books/modx-revolution-building-the-web-your-way.html

          Check out my MODX || xPDO resources here: http://www.shawnwilkerson.com