stlewis Posted April 16, 2010 Share Posted April 16, 2010 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 More sharing options...
ChemicalBliss Posted April 16, 2010 Share Posted April 16, 2010 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.