• Hello All, Dear Frank!

    I would like to ask that could you help me solve my caching problem which gets huge very fast because I do not know what to do even when I read the FAQs…

    My website was working like a charm since my last issue and the loading time was average 740ms fast all the time, but since (like one mounts ago) my website loading time is average 3700ms, which is a huge difference.

    Nothing else change that updating the Autoptimize and activating a new plugin called Thrive Leads, but since I see that my Cache size is getting over 1GB per day.
    Could someone look on it, maybe he/she can see what is the problem with it?

    My website is:
    https://www.napelemek-napkollektorok.hu/

    Thank you in advance!

    Best regards,
    Antal

Viewing 15 replies - 1 through 15 (of 23 total)
  • I have the exact same problem.. Cache gets full and then my site takes forever to load or doesnt load certain images at all. Once cleared, site loads normal again. Any help would be greatly appreciated.

    Plugin Author Frank Goossens

    (@futtta)

    disable the “aggregate inline JS”-option and your cache-size should be fine (you might have to exclude js/jquery/jquery.js from JS optimization as well).

    (reason; one or more plugins injects inline JS which changes regularly, if you’re aggregating inline JS this results in AO not being able to use optimized code from cache, creating a file one)

    frank

    Thread Starter tonz003

    (@tonz003)

    Dear Frank!

    First of all thank you very much for your assistance!

    I have disabled “aggregate inline JS”, everything works fine. The loading is very fast now, I get very good scores on all speed test.

    Although there is one plugin which does not work properly with “aggregate inline JS” disabled.
    The plugin is the “Advanced post slider”, which has the solar PV system references on the homepage.
    I think the “Advanced post slider” plugin’s javascripts does not work.

    Could you please check it? What should I do with this to keep this high scores?

    Thank you very much!

    Best regards,
    Antal

    Plugin Author Frank Goossens

    (@futtta)

    you could try excluding advanced post slider’s JS, by adding
    advanced-post-slider/js/ to the comma separated JS exclusion list (as the JS relies on jquery, you will most definitively need to exclude js/jquery/jquery.js as well).

    frank

    Thread Starter tonz003

    (@tonz003)

    Hello Frank!

    I have added all the js files of the advance-post-slider and the js/jquery/jquery.js also, to the exclude list, but sadly the advance-post-slider still not working.

    Any another idea?

    Thank you in advance!

    Antal

    Plugin Author Frank Goossens

    (@futtta)

    Hmm … any JS error on the browser console?

    Thread Starter tonz003

    (@tonz003)

    Dear Frank!

    Thank you very much for helping!

    2 errors and one warning…
    One erro is becasue captcha.

    And one is this:
    Uncaught ReferenceError: jQuery is not defined.

    The warning is:
    Synchronous XMLHttpRequest…

    Also this is noted:
    JQMIGRATE: Migrate is installed, version 1.4.1

    I have no idea what is the problem!

    Antal

    Plugin Author Frank Goossens

    (@futtta)

    well,

    jQuery is not defined.

    seems to indicate there’s something wrong with the exclusion. could you copy/paste your entire js-exclusion text here?

    Thread Starter tonz003

    (@tonz003)

    s_sid,smowtion_size,sc_project,WAU_,wau_add,comment-form-quicktags,edToolbar,ch_client,seal.js,advps.frnt.script.js,advps.script.js,js/jquery/jquery.js,advanced-post-slider/js/

    Plugin Author Frank Goossens

    (@futtta)

    looks correct. afraid I’m going to have to see the problem to be able to troubleshoot further. do you happen to have a non-prod site where you can live with the error being visible?

    Thread Starter tonz003

    (@tonz003)

    Not really!
    But I will leave it like this until you have the time to check it.
    It is not that bad for user experience!

    Thank you very much for looking into it!

    Plugin Author Frank Goossens

    (@futtta)

    found it; you have something (a plugin, maybe async js) setting the defer-flag on jquery;

    <script type='text/javascript' defer src='https://www.napelemek-napkollektorok.hu/wp-includes/js/jquery/jquery.js'></script>

    which means that jquery is loaded late, even if it’s excluded from AO. find a way not to defer jquery and you’ll be good to go!

    Thread Starter tonz003

    (@tonz003)

    Hi Frank!

    I have disabled that defer flag, now the website works perfectly, but now another thing is the problem…
    Now, my awesome scores are gone. My loading time is much slower.
    Is it possible that I keep the defer flags and it will not brake that plugin.

    What is your advice, what shall I do!

    Thank you anyway for the awesome help!

    Plugin Author Frank Goossens

    (@futtta)

    Is it possible that I keep the defer flags and it will not brake that plugin.

    no, you cannot defer jquery if another plugin needs it immediately.

    but …

    you could turn things around entirely and keep on aggregating inline JS and not excluding jquery, but instead excluding the trive-leads inline JS from optimization (which you identified as a possible culprit in your original post).

    if you’re right about TL being the reason and if you’re lucky, simply excluding TL_Const might do the trick ??

    frank

    Hi @all,

    I found a solution for users who use the Thrive Leads plugin.

    You′ve to exclude the following:

    • js/jquery/jquery.js
    • plugins/thrive-leads/js/frontend.min.js

    Also deactivate the inline-JS function.

    Then it works well without growing up your cache size.

    For any question contact me over my website https://www.agile-master.de/

    Regards
    Sven

Viewing 15 replies - 1 through 15 (of 23 total)
  • The topic ‘Autoptimize cache size quickly get over 100%’ is closed to new replies.