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

    (@futtta)

    Automatically clearing cache folder is not a trustworthy solution, as AO does not know which files are (still) being referenced in cached pages (in wordpress page cache, in a caching reverse proxy or in a browser cache), which would badly break pages if the JS/CSS would be purged.

    Refer to the FAQ and the pinned topic here to read how to limit the speed with which your cache size grows.

    frank

    Thread Starter Gambler0815

    (@gambler0815)

    Dear Frank,

    I tried the solution you gave – but that doesn’t stop my problem …
    having a theme and a child theme function.php file … should I place it on top or at the end?

    add_filter('autoptimize_js_include_inline','support_ao_js_include_inline',10,1);
    function support_ao_js_include_inline() {
            return false;
    }
    Plugin Author Frank Goossens

    (@futtta)

    in your child theme, at the end ??

    Thread Starter Gambler0815

    (@gambler0815)

    Hi Frank – I did it like recommended – but than another script wasn’t working correct – aswell part of the theme breaks ..

    Plugin Author Frank Goossens

    (@futtta)

    well, depending on your theme/ plugins, you might indeed have to “force JS in head” when excluding inline JS from being aggregated.

    frank

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Cache timeout – clear cache’ is closed to new replies.