Jump to content

Caching Strangeness?


stlewis

Recommended Posts

I have an interesting situation that may not actually have anything to do with PHP, but I want to eliminate all possibilities. I'm developing a website using a home-rolled MVC framework. I'm using mod_rewrite in an .htaccess file located in my root directory so that all requests are routed to a controller that calls file_get_contents to pull a template and render that on the page.

 

The problem I'm having is that I seem to be rendering a cached version of the template, no matter how many times I refresh or reset my browser cache...What I'm trying to determine is which may be the culprit...something to do with caching in PHP, or something to do with mod_rewrite, or something I'm just not thinking of?

 

Any help would be appreciated!

 

Steve

Link to comment
https://forums.phpfreaks.com/topic/198795-caching-strangeness/
Share on other sites

1. Are you sure your not working in the wrong directory? (it happens).

 

2. Have you tried a different browser?

 

3. Also have you tried modifying the script, so that you load the file into a variable, and check the variable, or change the page in the php.

 

4. If you can narrow it down to the function, use a different one, fopen/fread, file(), ob_start+include.

 

-cb-

Link to comment
https://forums.phpfreaks.com/topic/198795-caching-strangeness/#findComment-1043366
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.