• Resolved Efs

    (@stevendigital)


    Hello. I would like to ask something that came up. After installing the plugin “Antis-Spam” by VleanTalk, i saw that my cache was growing very fast. That was not happening before.I also exclude from css the folder : wp-content/cache.

    Any thoughts why that happens?

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

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

    (@optimizingmatters)

    you’ll want to untick the “also aggregate inline JS”-option or try identifying the specific inline JS to exclude to add that to the JS optimization exclusion list (my money is on ct_checkjs_register_form).

    hope this helps,
    frank

    Thread Starter Efs

    (@stevendigital)

    I will apply this settings right away. I found the ct_checkjs_register_form and i will also add it in the exlude list. Also anothe question i had quite some time now : is wp fastest cache creates any conflict with autoptimize? Of course , i will not use the same settings in matter of js-css optimization in both plugins.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    Just make sure to disable all CSS/ JS minification & combination in WP Fastest Cache and you should be good to go! ??

    Thread Starter Efs

    (@stevendigital)

    Hello again . I added ct_checkjs_register_form in the exclude list . Also aggregate inline JS was not disabled to be honest and the aggregate inline css was also on.
    I know that you told me to diactivate them . But i remember that i had this two options active before and the cache was not filling so fast. This was starting to happen after i installed the Anti-spam plugin.So is there any problem with this plugin or the newest version of autoptimize tends to do that?

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    the problem is that the anti-spam plugin injects inline JS in the HTML that has a (semi-)random value in it;

    
    <script type='text/javascript'>setTimeout(function(){var ct_input_name = 'ct_checkjs_register_form_b4a528955b84f584974e92d025a75d1f';if (document.getElementById(ct_input_name) !== null) {var ct_input_value = document.getElementById(ct_input_name).value;document.getElementById(ct_input_name).value = document.getElementById(ct_input_name).value.replace(ct_input_value, '1932561701');}}, 1000);</script>

    so the last part of the ct_input_name value, b4a528955b84f584974e92d025a75d1f will change regularly. if inline JS is aggregated and ct_checkjs_register_form is not in the JS optimization exlude list, then the aggregated JS for that page will be different from the aggregated JS of another page if that random string is different, which will cause AO to re-minify and cache that file.

    unticking “also aggregate inline JS” or adding ct_checkjs_register_form to the comma-separated JS optimization exclusion list, fixes this problem.

    hope this clarifies,
    frank

    Thread Starter Efs

    (@stevendigital)

    Yes that answer was on the spot and clarified most of my question.
    I will do another test and i will inform you. For now i will not aggregate the inline js.
    Also i tried with Chrome web developer tools to find the script above, but my efforts came to a vain. Can you point out where i cna find that script?

    Thanks in advance for all the help.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    if “also aggregate inline JS” is off (and assuming you cleared any page cache you might have), it should be in the HTML source, just ctrl-F for ct_checkjs_register_form_ ??

    Thread Starter Efs

    (@stevendigital)

    Ok i will. I will contact you soon with some more results.
    Thank you very much for the help and the clarifications.

    Thread Starter Efs

    (@stevendigital)

    UPDATE : So i put the ct_checkjs in the exludion list and unticked teh option to aggregate inline JS.I also added wp-content/cache, wp-content/uploads on the CSS exludion list also.Still i get the cache full. I did not untick the inline css aggregation. But i don’t know if this matters . Any thoughts?

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    OK, can you check how many files are in wp-content/cache/autoptimize/css vs in wp-content/cache/autoptimize/js?

    Thread Starter Efs

    (@stevendigital)

    On my way to check them . Give me a couple of minutes

    Thread Starter Efs

    (@stevendigital)

    I see only the index.html in both of the folders.

    • This reply was modified 6 years ago by Efs.
    Plugin Author Optimizing Matters

    (@optimizingmatters)

    ah, you’re not serving the autoptimized JS/ CSS as static files. maybe briefly switch that on to see which one is filling up faster?

    Thread Starter Efs

    (@stevendigital)

    So in the misc options i should tick the “Save aggregated script/css as static files?And also activate the aggregation in css and js again?

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    So in the misc options i should tick the “Save aggregated script/css as static files?

    yes

    And also activate the aggregation in css and js again?

    no, better keep that off for now.

Viewing 15 replies - 1 through 15 (of 22 total)
  • The topic ‘Potential problem with Antispam plugin’ is closed to new replies.