• Hi,

    On several sites this plugin has been GREAT!

    On another site that has a lot of posts (about 20,000 posts) the cache hovers around 500M-800M… however, twice in the last 2 months the cache grew to exceed 10GB in 2 days (causing my backups to run out of diskspace).

    The problem is in the js folder and a bit hard to understand why there would be so many js file of a pretty good size showing up in the cache. It quickly reaches a few hundred files all around 200k each… then for an unknown reason jumps to 10000s of files in ~24-48 hour period.

    Perhaps some tips to limit the cache size to something more reasonable?
    Thank you,

    Peace!

    https://www.ads-software.com/plugins/autoptimize/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Frank Goossens

    (@futtta)

    hi peacesong;
    this is caused by page (or even request)-specific JS being inserted by a plugin, which results in the aggregated JS being different each time so the cached version cannot be used. you can either try to identify the culprit JS and exclude it from optimization (see FAQ) or you can tell AO not to aggregate inline JS at all using the API (using the autoptimize_js_include_inline filter to be specific, see example code in autoptimize_helper.php_example).

    hope this helps,
    frank

    Thread Starter peacesong

    (@peacesong)

    Hi Frank,

    Thanks for your directions.

    Don’t have the time to figure out the culprit so just turned off JS optimization. will investigate further when i have more time.

    Question – Is it advisable to use Autoptimize with Super Cache or other cache – or stand alone?

    Thank you,

    Peace!

    Plugin Author Frank Goossens

    (@futtta)

    if you don’t have the time to investigate, you can do this instead;

    you can tell AO not to aggregate inline JS at all using the API (using the autoptimize_js_include_inline filter to be specific, see example code in autoptimize_helper.php_example).

    and regarding;

    Question – Is it advisable to use Autoptimize with Super Cache or other cache – or stand alone?

    do use a page caching plugin, else AO is called on every request which could result in some time being lost.

    frank

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