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

    (@futtta)

    Hi Der-Bank-Blog;
    Some questions;
    * are the
    bulk of the files in /wp-content/cache/autoptimize/js or /wp-content/cache/autoptimize/js?
    * what did you already exclude from JS or CSS optimization?
    * did you try with “look only in head” for CSS and/ or JS?

    kind regards,
    frank

    Thread Starter Der-Bank-Blog

    (@der-bank-blog)

    Hi Frank

    Thanks for your kindness to help me

    Most of hte files are in /wp-content/cache/autoptimize/js

    I am excluding 2 js files from optimization because of a possible conflict with my theme

    I checkmarked look only in head for js, but not for css

    Cheers from Germany
    Hansj?rg

    Plugin Author Frank Goossens

    (@futtta)

    OK, let me explain what I did for future reference;

    1 opened 2 pages;
    https://www.der-bank-blog.de/allgemein/
    and
    https://www.der-bank-blog.de/die-kunde/

    I viewed HTML and searched for the aggregated JS;
    https://www.der-bank-blog.de/wp-content/cache/autoptimize/js/autoptimize_0cf634a70f5c70bd49383c49fe867747.js
    and
    https://www.der-bank-blog.de/wp-content/cache/autoptimize/js/autoptimize_968880f3579d181118e8b1ebeb4d3e3f.js

    I opened both files and “beautified” the contents via https://jsbeautifier.org/

    I copy/ pasted the resulting beautified JS in 2 different files and compared them (using “diff”).

    The result;

    diff bankblog_1.js bankblog_2.js
    8513c8513
    < “orig_request_uri”: “\/digital-banking\/”

    > “orig_request_uri”: “\/allgemein\/”

    Based on that I’d suggest to add “orig_request_uri” to the comma-seperated JS exclusion list.

    Hope this helps!
    frank

    Thread Starter Der-Bank-Blog

    (@der-bank-blog)

    Hi Frank

    thanks a lot. I will try that out and let you know about the result

    Cheers from Germany

    Hansj?rg

    Thread Starter Der-Bank-Blog

    (@der-bank-blog)

    Hi Frank

    It does not help. The Problem is still there. 6000 files within 2 days

    Plugin Author Frank Goossens

    (@futtta)

    well, then you’ll have to re-apply the methodology as described above; find 2 pages with approx. the same content and compare the beautified JS.

    alternative is to use the API to tell AO not to aggregated inline JS;

    add_filter('autoptimize_js_include_inline','bankblog_ao_js_include_inline',10,1);
    function bankblog_ao_js_include_inline() {
    	return false;
    	}

    this (telling AO not to aggregate inline CSS or JS) will most probably become a setting in AO 2.0 (replacing “look only inline”).

    kind regards,
    frank

    Thread Starter Der-Bank-Blog

    (@der-bank-blog)

    Hi Frank

    I really apreciated your tipps but unfortunatly it seems, I am not qualified to apply them ??

    I do not have any PHP knowledge

    So I have to continue to delete all cached files every day…

    Plugin Author Frank Goossens

    (@futtta)

    php knowledge is not really needed for that API-based change; copy-paste that exact block of code in your theme’s functions.php and you’re good to go (do take into account that you would typically have to reapply with each theme upgrade).

    frank

    Thread Starter Der-Bank-Blog

    (@der-bank-blog)

    OK I see. I will try that out

    Thx again

    Hansj?rg

    Thread Starter Der-Bank-Blog

    (@der-bank-blog)

    Hi Frank

    everything is fine now. Thanks a lot for your help

    Kind regards from Germany

    Hansj?rg

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Still problems with number of caching files’ is closed to new replies.