• Resolved donlee101

    (@donlee101)


    Hi there,

    I added a countdown plugin on the website, which is now causing huge cache. I do have agregate inline js on. I excluded the js file for the countdown plugin, but it still looks like something is adding the following code into the autoptimize js cache file for product pages.

    I have analyzed the autoptimize js cache files and this is the only difference found that is causing huge cache. Is it possible to exclude this code? Any help would be much appreciated. (basically the time is always different in the below code that is triggering js files to be generated for each product page)

    if(jQuery(“#ad_crt_tmr_cdn”).length>0){jQuery(“#ad_crt_tmr_cdn”).countdowntimer({startDate:”2020/04/17 22:27:23″,dateAndTime:”2020/04/18 14:00:00″,size:”xs”,regexpMatchFormat:”([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2})”,regexpReplaceWith:”<span class=’cdn_hrs cdn_hldr’>$2</span>:<span class=’cdn_mins cdn_hldr’>$3</span>:<span class=’cdn_secs cdn_hldr’>$4</span>”});};

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    OK, can you try adding #ad_crt_tmr_cdn to the exclusion list?

    Thread Starter donlee101

    (@donlee101)

    Another TOP solution from you. Much appreciated, many thanks!

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    you’re welcome donlee101 ??

    Thread Starter donlee101

    (@donlee101)

    hi there,

    the fix #ad_crt_tmr_cdn as exclusion no longer works since recent updates.

    Now i get error in console (index):1764 Uncaught TypeError: jQuery(…).countdowntimer is not a function
    at (index):1764

    can you help please

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    you’ll have to exclude the jQuery countdown JS from being Autoptimized. Now the fact you also have Asset Cleanup running (with some overlap with Autoptimize) is making things a little more complex, so ideally disable JS/ CSS optimization in Asset Cleanup?

    hope this helps,
    frank

    Thread Starter donlee101

    (@donlee101)

    To skip the complexity i’ve disabled AssetCleanup and it’s fine for now. Many thanks.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    you’re welcome, enjoy the weekend ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Large cache’ is closed to new replies.