Support » Fixing WordPress » Lots of weird caching problems with W3 Total Cache and Cloudflare. Redirects etc

  • Resolved Jackalope Co.

    (@thedonquixotic)


    Okay so I’m having a bunch of problems and I think they’re basically all centered around my use of w3 Total Cache plugin and the cloudflare CDN.

    Problems I’m having:

    JS and CSS won’t concat–

    — I’m using the W3 minification and concat tools to smush all my JS and CSS into a fewer number of files.

    It was working, but now it’s not… and I’m not sure why. I’ve flushed the cache on the general settings board, I’ve flushed the cache from the Cloudflare extensions page, I’ve flushed the cache from the Cloudflare website, and I’ve flushed the cache from my Dreamhost web panel, but nothing things to be changing anything.

    I’ve got all the settings set up for it, but … no avail. It’s still loading the jquery 1.2.4, migrate, and my header prod script separately. It isn’t minifying things but it’s not combining them as it should.

    And the fact that it’s cached is making it really hard to troubleshoot.

    CSS front end styles are being applied to my admin panel —–

    —- The CSS used for my front end is somehow being applied to my backend. I can’t hunt down the issue properly because it seems my JS and CSS maps are confusing the chrome tools when I try to pin point where the extra styles are coming from or why they’re being loaded into my backend.

    I am using a program called Tiny MCE Custom Styles, and it does have the ability to apply changes to the front and backend of WP but it does so only in the context of the Tiny MCE, and furthermore it only does this to things you specify in the “shared-styles” css file. However, in this case it seems to be doing it for all styles or something.

    Too many HTTP redirects popping up ——

    I just contacted my host provider to see why my account didn’t have proper access to editing my htaccess file, because the one created by the chat tech yesterday was readonly and therefore couldn’t be changed by w3TC on my system. So he reverted stuff back to the old HTACCESS which contains the things that it is supposed to from w3TC and it appears W3TC can now edit the htaccess file BUT I’m now also getting far too many redirects according to pingdom.com

    So I ssh into my htaccess and I deleted what I thought was the redirect stuff. Basically just the default wordpress stuff. I’ve got https and WWW enforced on my website (HTTPS because it’s the standard now and WWW because it’s required by Cloudflare CDN for some reason). I flushed the cache. Pingdom is still reporting issues.

    Again that could just be some lag time from the CDN or something but it’s very hard to diagnose this issue with these caching services. I’m pulling out my hair and thinking about just trying to find some other way to deal with this stuff.

    My website isn’t even really loading all that slow, but I want to make sure I get at least a 90 on my google page speed insights etc. And the faster the website the better for sure either way.

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

Viewing 9 replies - 1 through 9 (of 9 total)
  • Moderator t-p

    (@t-p)

    w3 Total Cache plugin

    I recommend asking at https://wordpress.org/support/plugin/w3-total-cache so the plugin’s developers and support community can help you with this.

    and the cloudflare CDN.

    For pro or commercial product support please contact them directly on their site.

    Jackalope Co.

    (@thedonquixotic)

    @t-p

    I’ve already posted to the plugin specific forum but looking over the history of other posts, the developer does not help people.

    And I’ve already contacted and been helped by the cloudflare people. The issue isn’t with cloudflare, though it might be further exacerbated by it or hidden.

    Moderator t-p

    (@t-p)

    I’ve already posted to the plugin specific forum

    Is this your original post there?

    If so, please continue with your original post: https://wordpress.org/support/topic/theme-styles-are-being-loaded-in-admin-login-and-js-and-css-arent-being-bundled/

    Jackalope Co.

    (@thedonquixotic)

    Of the issues that I’ve listed, 2 of them don’t necessarily have anything to do with w3TC. Redirects might have some issue that was started by a misconfiguring of w3TC but the htaccess file is a generic technology shared by all wordpress installs on apache servers, so it’s fair enough to ask questions about it here.

    And the Shared styles being pulled into my backend could be a problem related or caused by w3TC but it could just as easily be an issue related to WordPress in general or the way that TinyMCE works.

    The description on the front page says:

    >Fixing WordPress
    >For any problems encountered after setting up WordPress.

    I’d say this qualifies under that definition.

    Could always post my question to wordpress.stackexchange but this is a bit more open ended than that

    Jackalope Co.

    (@thedonquixotic)

    Also I fixed the bundling issue listed in the original post, though still not clear on why it’s causing some other secondary problems.

    Hi @jackalope Co. I am facing similar issue, w3 total cache is causing bugs in my css front end as well as I cannot access my wp-admin , Please Help.

    @dharupriyanshi I ended up not using w3 total cache. Instead I found autoptimize much easier to use and with a better UX

    Hi @thedonquixotic. Plz, give us a link to this optimizer. A lot of people will be much happier..
    Thanks a lot!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Lots of weird caching problems with W3 Total Cache and Cloudflare. Redirects etc’ is closed to new replies.