• Hi,

    a customer use WPTouch Pro mobile theme on his blog and some of this javascripts are not working with autoptimize. So the support of WPTouch says that the complete directory wp-content/wptouch-data should be excluded.

    But how can it exclude?

    Thanks,

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

    (@optimizingmatters)

    simply adding wp-content/wptouch-data to the comma-separated JS optimization exclusion list should do the trick wpler.

    hope this helps,
    frank

    Thread Starter wpler

    (@wpler)

    Hm, i have add it to “Folgende Skripte von Autoptimize ausschlie?en:” (sorry, in german) to the list, but not works.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    well, can’t check because you didn’t provide a URL, but maybe the directory name is wrong or maybe more needs to be excluded?

    Thread Starter wpler

    (@wpler)

    I don’t know.. this comes from WPTouch Support:

    Inspecting this, I see that the issue is very likely caused by the Autoptimize plugin. To prevent the issue, see if adding the /wp-content/wptouch-data/ directory to the exclusion list for JS and CSS in Autoptimize. Then, clear Autoptimize’s cache and test again.

    I have wrote the WPTouch Support again that this not works.

    • This reply was modified 5 years, 9 months ago by wpler. Reason: forget to note that I'm writing support
    Plugin Author Optimizing Matters

    (@optimizingmatters)

    well, then I guess you can tell them you excluded and it still does not work and that you’ll await further instructions? ??

    can’t say much more, given i’m flying blind here wpler :-p

    Thread Starter wpler

    (@wpler)

    Ok, WPTouch support investigate this.

    But of course… if I’m include the directory wp-content/wptouch-data/cache/ autoptimize ignores this and still cached js files from this directory.

    It looks like only files but no directories can be specified here.
    Why not?

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    It looks like only files but no directories can be specified here.

    nah, AO most certainly can exclude entire directories, but excluded files that are not minified (based on filename) are minified by AO. So still flying blind here, so can’t say for sure, but maybe try unticking the “Minify excluded CSS and JS files?”-option?

    Thread Starter wpler

    (@wpler)

    This option are unchecked. It is the file wp-content/wptouch-data/cache/wptouch-[random-md5-hash].js and have minified content in. Obviously wptouch generates this file dynamically on loading or something, because the md5-hash-filename changes constantly.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    so, can you finally share that URL wpler? ??

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘How to exclude complete directory?’ is closed to new replies.