We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 40249
    • 31 Posts
    Hello together,

    i've installed the package statcache 1.3.0 via package manager in modx2.2.14-pl.
    Then i added the plugin to the Events OnBeforeSaveWebPageCache &OnSiteRefresh.

    When i make a new page the page doesn't get generated in cache, i could also not find a folder named "statcache" or any generated files on my FS. is there anything else i need to install in modx or server or set any special rights to get statcache running?

    There is no entry in my PHP error log and my modxerror.log

    when i manualy refresh the cache i get the following errors

    Requesting Resource at http://server.net/
    Updated cache for resource at http://server.net/
    `2` was requested but no alias was located.
    Requesting Resource at http://server.net/work2.html
    Updated cache for resource at http://server.net/work2.html
    `3` was requested but no alias was located.
    Requesting Resource at http://server.net/magazine.html
    Updated cache for resource at http://server.net/magazine.html
    `4` was requested but no alias was located.
    Requesting Resource at http://server.net/about.html
    Updated cache for resource at http://server.net/about.html
    `25` was requested but no alias was located.
    Requesting Resource at http://server.net/rama-helping-hands.html
    Updated cache for resource at http://server.net/rama-helping-hands.html
    `112` was requested but no alias was located.
    Requesting Resource at http://server.net/some-test.html
    Updated cache for resource at http://server.net/some-test.html
    Processing automatic publishing dates
    -> 0 documents were published.
    -> 0 documents were unpublished.
    Regenerating system settings cache: Refresh successful!
    Regenerating the context caches
    -> mgr: Refresh successful!
    -> web: Refresh successful!
    Clearing the lexicon topics cache: Refresh successful!
    Clearing the Snippet/Plugin script cache: Refresh successful!
    


    when i turn off friendly_url in system config my cachelog looks like this, but still no file output to statcache folder.

    Updated cache for resource at http://server.net/index.php?id=1
    Requesting Resource at http://server.net/index.php?id=4
    Updated cache for resource at http://server.net/index.php?id=4
    Requesting Resource at http://server.net/index.php?id=112
    Updated cache for resource at http://server.net/index.php?id=112
    Requesting Resource at http://server.net/index.php?id=1
    Updated cache for resource at http://server.net/index.php?id=1
    Requesting Resource at http://server.net/index.php?id=4
    Processing automatic publishing dates
    -> 0 documents were published.
    -> 0 documents were unpublished.
    Regenerating system settings cache: Refresh successful!
    Regenerating the context caches
    -> mgr: Refresh successful!
    -> web: Refresh successful!
    Clearing the lexicon topics cache: Refresh successful!
    Clearing the Snippet/Plugin script cache: Refresh successful!


    thanks for any help [ed. note: degoya last edited this post 12 years, 5 months ago.]
      • 36551
      • 416 Posts
      I have the same question about this.

      The wiki says:

      "Once the extra is installed and the StaticCache plugin is enabled and generating your static files..."

      but I don't understand how to generate the static files. I've installed and enabled the plugin, added the events. Nothing seems to be happening. I can find no folder called statcache.

      How is this supposed to work?

      Thanks.
        • 39036
        • 28 Posts
        Hi, if you're still having problems generating static files read these:

        https://github.com/opengeek/statcache/wiki/StaticCache-Plugin
        https://github.com/opengeek/statcache/wiki
        http://www.sepiariver.ca/blog/modx-web/statcache-optimized-cms-website-performance/

        You need to manually create the statcache folder in your web root and check the necessary system events. I also created a cacheTV to target caching particular resources. Don't forget to clear your cache after making these changes.

        Hope this helps
          • 36551
          • 416 Posts
          I didn't see anything that mentioned creating the folder.

          I'll give it a try when I have a few minutes.

          Thank you!