Title: Does WP &#8220;cache&#8221; templates?
Last modified: August 19, 2016

---

# Does WP “cache” templates?

 *  [SixString](https://wordpress.org/support/users/sixstring/)
 * (@sixstring)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/does-wp-cache-templates/)
 * This is weird. Everything was going fine, but I tried adding a query_posts statement
   to one of my template files so the page would display only posts from a certain
   category. It didn’t work. After more trial & error, I discovered that suddenly**
   nothing** I did to the template file was having any effect! I could change the
   name of the sidebar include, even delete all the code in the template and the
   page still loaded exactly the same. I cleared my cache, logged out, restarted
   my browser, nothing.
 * I double (triple-, quadruple-) checked: the template file
    is the one associated
   with the page. (I even un-linked it and re-linked it.) I tried changing the name
   of the template and linked to that. I could even delete it from the directory
   and the page still loads. I created a new page and linked to the same template
   file, and it was fine: changes I made in the template were reflected in the page.
   But not with my original page.
 * Any ideas? Is it possible the database got messed up and it’s using an older 
   version of the template file I can’t access any more?

The topic ‘Does WP “cache” templates?’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [SixString](https://wordpress.org/support/users/sixstring/)
 * Last activity: [15 years, 11 months ago](https://wordpress.org/support/topic/does-wp-cache-templates/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
