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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.