We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 17379
    • 26 Posts
    Hi,
    Im writing mini php script to moving documents between parents in modx documents tree. My script updates database table modx_site_content. When i run the script and then click on the refresh button in modx the changes appears but unfortunately not on client side.
    I''ve checked out the "cacheable" checkbox on the main document and on the document i've been working on and all parents documents. No matter what i do the assets/cache/siteCache.idx.php file still updates and cache the state before my changes.
    What can i do?
      • 33968
      • 863 Posts
      Not sure exactly what you are doing, but when you make changes to modx documents through your own scripts you need to trigger a cache refresh so the new changes appear on the front end.

      Have a look at the docs for $modx->cacheManager() for an idea of how to do this.
        • 17379
        • 26 Posts
        Thanks for reply. I didn't mention that I'm using modx evolution 1.0.5 in this system. Can i do something like this caching functions for this distribution?

        Edit:
        nvm, i've started my adventure with revo now :] [ed. note: loganix last edited this post 14 years, 5 months ago.]