Forums

Template files not updaing (11 posts)

  1. dvalle
    Member
    Posted 5 years ago #

    Hello all,

    I have a problem when I make a change to a template file such as "header.php". When I make a change and upload it, I re-visit the site and refresh, and the change is not made. I even cleared the cache, still no. But if I come back to it a day or two later, then the change is shown. Why is this? I need to be able to see changes in real time. ANy solutions?

  2. Jeremy Clark
    Moderator
    Posted 5 years ago #

    You might be behind a caching proxy server. Are you working on your template from a school or work.

  3. dvalle
    Member
    Posted 5 years ago #

    No, I am working out of my house. I have no server, just my PC connected straight to the internet.

  4. Jeremy Clark
    Moderator
    Posted 5 years ago #

    Your isp might be running the caching server. It's not uncommon still annoying though. My only suggestion is that you could install wordpress localy work on any changes then upload those files once you get it the way you want it.

  5. dvalle
    Member
    Posted 5 years ago #

    It's strange because I don't have this issue on other websites. It's only when I am working with a WordPress site.

  6. Jeremy Clark
    Moderator
    Posted 5 years ago #

    That is indeed strange. Who is your host. It could very well be an issue with them.

  7. dvalle
    Member
    Posted 5 years ago #

    Dreamhost

  8. Jeremy Clark
    Moderator
    Posted 5 years ago #

    Do you have wp-cache or wp-advanced cache turned on in the plugins section.

  9. dvalle
    Member
    Posted 5 years ago #

    WP-Cache is turned off and I don't have wp-advanced.

  10. dvalle
    Member
    Posted 5 years ago #

    This only happens with template files. The CSS file is updating perfectly fine. Too weird and completely annoying.

  11. dvalle
    Member
    Posted 5 years ago #

    I think I found out what the problem was. I double checked the plugins and saw that WP-Cache was NOT active, BUT there is a file called "wp-cache-config.php" in my theme folder. It's definitely this file that is causing the problem. I don't know what it does, but I changed the "$cache_max_time" variable to 1 second as a test to see what happens because it was set to 1 hour. So I guess it would take a full hour to see the change cause Worpress is keeping a cached version of the files. Since I made the change, the updates now happen right away. I guess I will have to change this back to it's original setting once it is all done.

    Is anyone familiar with that file and what it does?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.