• Hi,

    I think the plugin has compatibility issue with autoptimize. If you access the site with ?wmc-currency=BTC. It will return 404 for js files from autoptimize. I think it is because this plugin clears autoptimize cache every time when the url has wmc-currency for one of the get paramenters.

    Let me know if you need anything from me. Thanks!

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

Viewing 15 replies - 1 through 15 (of 16 total)
  • Hi,
    I see that it works correctly on your site. What is your problem?

    this plugin clears autoptimize cache every time when the url has wmc-currency for one of the get paramenters.

    is that correct kimvt? because that sounds like a really bad idea to be honest :-/

    frank (ao dev)

    Yes that’s the only way we know to make it work correctly with autoptimize cache now. This happens only when customers switch currency. Do you have any better idea?

    well, can you explain why you have to do so? what breaks when you don’t do that?

    Cache plugins cause our plugin to show wrong currency symbol. We will do more tests to see if it causes any problem.
    @chienchou Please open file cache.php(woo-multi-currency/frontend/cache.php) and clear the code that we use to clear autoptimize cache(line 52 to 54) and test. If it works correctly, we will remove that code from our plugin.

    Cache plugins cause our plugin to show wrong currency symbol

    Autoptimize is not a (page) cache plugin, it just optimizes the CSS & the JS (and optionally images, google fonts, …).

    We will do more tests to see if it causes any problem.

    Great, feel free to reach out (futtta-at-gmail-dot-com) if you need assistance 🙂

    Thread Starter chienchou

    (@chienchou)

    Hi,

    I try comment out the code and clear cloudflare and W3 total cache and the js error still exists. It looks like it keeps loading a autoptimize file that doesn’t exist when the get parameter is present.

    Do you guys have any idea? Any help is appreciated!

    https://www.thechrono.ca/wp-content/cache/autoptimize/js/autoptimize_0a192e2f8f5b2fa2b07c04d5d0f476ad.js

    could be litespeed or cloudflare cache?

    Thread Starter chienchou

    (@chienchou)

    I don’t have litespeed installed and I purged cloudflare cache before checking the page again.

    you might need to check with your hoster, as you HTTP response headers do mention litespeed;

    @chienchou after commenting out the code you have to clear autoptimize cache as well.

    Thread Starter chienchou

    (@chienchou)

    I cleared both cloudflare cache and autopmize cache after commenting out add_action( ‘init’, array( $this, ‘clear_browser_cache’ ) ); in cache.php and the problem still persists. I’ll ask the host to see how to clear litespeed cache.

    Thread Starter chienchou

    (@chienchou)

    Hi @kimvt1991,

    Open cache.php(woo-multi-currency/frontend/cache.php) and clear the code that we use to clear autoptimize cache(line 52 to 54) solves the issue. Please include this in the new version of the plugin.

    Do you get any other issues after that?

    Thread Starter chienchou

    (@chienchou)

    @kimvt1991,

    Nope. No more 404 errors on autoptimize js file

Viewing 15 replies - 1 through 15 (of 16 total)

The topic ‘Compatibility with Autooptimize’ is closed to new replies.