Caching Issue

List Of Bugs Fixed In The Webscribble Webdate Script.

Caching Issue

Postby Starbuck on Mon Feb 04, 2008 10:06 am

I was having a problem with pages caching that was not a browser issue. Has anyone else had this problem? If so, Paul has figured out the problem. That guy is AMAZING!! He does not give up until he figures out the problem. I wil let him explain the fix.
Starbuck
 
Posts: 16
Joined: Wed Jan 30, 2008 4:06 pm

Re: Caching Issue

Postby paul on Mon Feb 04, 2008 12:23 pm

If you are having trouble with the page cache... for example:
Code: Select all


dynamic pages not updating..

if approve profile is set to on .. and you upload a photo in the my_profile page it should change from:

your profile has approved status

to:

your profile is awaiting approval

I have found on one server there is a trouble with the page not being dynamic (meaning the page is not updated when reloaded)

I have run accross this on only one server but if it happens to your site here is the fix

ad to the top of index.php (in the root folder)
Code: Select all
header("Cache-Control: no-cache, must-revalidate"); //Disable Cache
  header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past

User avatar
paul
Site Admin
 
Posts: 264
Joined: Sat Jan 26, 2008 7:30 pm
Location: Newington,Ct,USA


Return to Webscribble Webdate Bugs Fixed

Who is online

Users browsing this forum: No registered users and 0 guests

cron