• Plugin Author Frank Goossens

    (@futtta)


    A recurring topic on this support forum is the cache size getting huge. The reason for this in 99.999% of cases is page- or even request-specific inline JavaScript which upon optimization by AO results in a new autoptimize_xyz.js file for each page (or request).

    The FAQ details multiple solutions, but the easiest one by far is enforcing AO not to aggregate the inline JS. You can do this by adding
    e.g. this code to your (child) theme’s functions.php:

    add_filter('autoptimize_js_include_inline','support_ao_js_include_inline',10,1);
    function support_ao_js_include_inline() {
            return false;
    }

    The next version of AO (probably due for Q4 2015) will have a simple option to enable/ disable inline JS and/or CSS aggregation (replacing “look only in head”).

    Hope this helps,
    frank

Viewing 15 replies - 1 through 15 (of 22 total)
Viewing 15 replies - 1 through 15 (of 22 total)
  • The topic ‘Solving cache size the easiest way’ is closed to new replies.