• Resolved qwe7410

    (@qwe7410)


    Hi,

    The it says “Autoptimize’s cache size is getting big, consider purging the cache.”

    I tried aggregate inline CSS and JS and the message remains.
    So i disabled only the aggregate inline JS.

    Under Cache info:
    Cached styles and scripts 61 files, totalling 4113 Kbytes (calculated at 15:00 UTC)

    On FTP i went to the optomize cache folder.
    CSS is at 1.6GB
    JS is at 2.37GB

    What should i do?

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter qwe7410

    (@qwe7410)

    I tried disabling and enabling aggregate inline CSS and JS.
    There isn’t any difference.

    I added the following codes to theme too

    add_action( ‘wcdn_head’, ‘test_reset_css_shipping’, 20 );
    add_filter(‘autoptimize_js_include_inline’,’support_ao_js_include_inline’,10,1);
    function support_ao_js_include_inline() {
    return false;
    }
    add_filter(‘autoptimize_css_include_inline’,’support_ao_css_include_inline’,10,1);
    function support_ao_css_include_inline() {
    return false;
    }

    Thread Starter qwe7410

    (@qwe7410)

    Sorry, wrong measurement.

    It’s CSS at 1.6mb
    JS at 2.37mb
    All those healthy values?
    It does increase after using the website for a while.

    The message “Autoptimize’s cache size is getting big, consider purging the cache.” remains all the itme

    Plugin Author Frank Goossens

    (@futtta)

    4MB is totally fine, but this

    It’s CSS at 1.6mb
    JS at 2.37mb

    and this

    The message “Autoptimize’s cache size is getting big, consider purging the cache.” remains all the itme

    in theory (as per the code) cannot happen simultaneously as the warning is only shown as approx. half a GB.

    I suspect that before you excluded inline JS (and CSS) you did have cache-size problems, which got fixed by excluding inline code (the filters do the same thing and so are useless really) and that the “warning”-flag failed to clear causing the error to keep on being visible. To fix this go to wp-admin/options.php, look for autoptimize_cachesize_notice on that screen, remove the value for it and click on “save” at the bottom of the screen.

    hope this helps,
    frank

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