Grow your CSS skills. Land your dream job.

WordPress cache problem

  • # September 17, 2012 at 1:15 pm

    This is a weird one..

    I changed my website for a new server and since then I’ve made multiple changes on it.
    Now I tried to change this specific file, header.php, and the code is changed (I already confirmed that with the server guys) but it appear an old version of it on the browser (any browser, any computer).

    The code to get this file is: include(“header.php”)

    The strange thing is that if I change this to include(“wp-content/themes/mytheme/header.php”) it the recent version appears.

    Any idea of what is happening or solutions? Thanks in advance.

    # September 17, 2012 at 8:05 pm

    Do you have 2 header files?

    # September 18, 2012 at 6:01 am

    Nope. I already scan all the directories looking for that and removed other themes leaving only the active one.

    # September 18, 2012 at 10:56 am

    Are you using a caching service?

    # September 18, 2012 at 10:58 am

    This normally happens when using a caching plugin such as w3 total cache. Delete the plugin manually.

    # September 19, 2012 at 10:44 am

    I solved the problem. It wasn’t any cache problem. I deleted all cache plugins and tried private browsing in Firefox so I could confirm that.

    The problem was that someone made a backup of header.php.. in the root.
    So when I was calling include(“header.php”) inside my theme folder wordpress was calling the one in the root and not the one in the theme folder.

    Thank you for your help.

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".