• Resolved typeless

    (@jbalyo)


    So it appears that on high traffic sites, this plugin quickly fills up the hard drive with cache files – at the rate of about +2GB per hour on each server. I’m really surprised there isn’t an option to set a maximum size for the cache.

    Regardless, since the cache is stored in wp-content/cache/autoptimize/ would it mess up the plugin or cause other issues if I set up a cron job to just delete all files from that directory every once in a while? Is that all that the “Save Changes and Empty Cache” button is doing, or does more need to happen?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    would it mess up the plugin or cause other issues if I set up a cron job to just delete all files from that directory every once in a while?

    yes, except if you don’t have a page cache. if you have have a page cache, then you’ll end up with severely broken pages (as the referenced JS/ CSS will return 404’s).

    or does more need to happen?

    there’s a lot of info on cache & cache size in the AO FAQ and this blog post explains why fast growing cache is a sign of bigger issues.

    bottomline; reconfigure AO to ensure more cache-hits by making sure non-static JS/ CSS is excluded from optimization and you’ll be fine ??

    frank

    Thread Starter typeless

    (@jbalyo)

    Wow thanks for the supersonic response. That definitely helps and I’m grateful that it helps avoid some major pitfalls. In the blog post you linked I found the post about setting a max-size. I will experiment with that along with some other tips on here to try running it without optimizing inline CSS & JS.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    you’re welcome, feel free to leave a review of the plugin and support here! ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘massive cache’ is closed to new replies.