Support » Plugin: Autoptimize » Autoptimize using 9 GB of cache space!

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

    (@futtta)

    hi scott;
    that’s a known issue with plugins that inject page- (or request-)specific JS (or CSS) into the HTML (cfr. the FAQ) which breaks all caching.

    As a solution you can hunt down the “ever-changing” JS or you could disable the aggregation of all inline JS using the API (“autoptimize_js_include_inline”-filter) as shown in autoptimize_helper.php_example.

    hope this helps,
    frank

    Thread Starter Scott Paterson

    (@scottpaterson)

    Hi Frank,

    Thanks for the reply.

    I was just thinking of an easy solution to this:

    When your PHP file runs that is responsible for creating the cache. Have a function in it that runs randomly, something like rand(1,100);.

    When it did end up running, the function would check the size of the cache directory, when it is above a user set limit then it would auto purge the cache.

    That shouldn’t take more then a few lines of code and it would be a great feature to have.

    Thanks,
    Scott

    Plugin Author Frank Goossens

    (@futtta)

    look what I found on my trello-board for the next release;

    cronned cache-file-counter, show warning if number of files grows too big (>5000?)

    🙂

    kind regards,
    frank

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Autoptimize using 9 GB of cache space!’ is closed to new replies.