Post Reply  Post Thread 
Pages (2): « First [1] 2 Next > Last »
php webpage caching
alias
Junior Member
**

Posts: 25
Group: Registered
Joined: Jun 2006
Status: Offline
Reputation: 0
Post: #1
php webpage caching

Hi,


I have one website and its main page is dynamic this i made in PHP, Now when i updating its content it is not displaying. We are accessing this website throuhg big proxy. this proxy server caching old pages, Please let me know how can i solve this issue.

Thanks
Alias

08-23-2006 09:04 AM
Find all posts by this user Quote this message in a reply
Pacifier
Administrator
*******

Posts: 222
Group: Administrators
Joined: May 2006
Status: Offline
Reputation: 1
Post: #2
RE: php webpage caching

You can add no-cache headers to your php pages, as in the following example:

PHP Code:
                @header("Cache-Control: no-cache, must-revalidate, max-age=0");
                @
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
                @
header("Pragma: no-cache"); 

08-23-2006 03:58 PM
Find all posts by this user Quote this message in a reply
will56
Junior Member
**

Posts: 11
Group: Registered
Joined: Jan 2010
Status: Offline
Reputation: 0
Post: #3
RE: php webpage caching
03-22-2010 07:10 AM
Find all posts by this user Quote this message in a reply
jamie471
Junior Member
**

Posts: 4
Group: Registered
Joined: Apr 2010
Status: Offline
Reputation: 0
Post: #4
RE: php webpage caching

Pacifier Wrote:
You can add no-cache headers to your php pages, as in the following example:

PHP Code:
                @header("Cache-Control: no-cache, must-revalidate, max-age=0");
                @
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
                @
header("Pragma: no-cache"); 


I didn't even realise that the Cache-Control header existed. Until now I have just been using the bottom two lines in my projects. Does it make a major difference with regards to proxies etcetera as it doesn't seem to cause any problems with the search engine crawlers?

04-26-2010 07:11 AM
Visit this user's website Find all posts by this user Quote this message in a reply
sherloklewis
Junior Member
**

Posts: 4
Group: Registered
Joined: Jun 2010
Status: Offline
Reputation: 0
Post: #5
RE: php webpage caching

I also use Smarty, but server's still reading data from mySQL, and I want not to do it for instance, by using the method proposed in the URL you mention. I receive +100,000 visits per day and data change 1-2 times per day. It's no worth reading these data every time user accesses the webpage.


r4 sdhc
06-11-2010 09:39 AM
Find all posts by this user Quote this message in a reply
clcheapshoes520
Junior Member
**

Posts: 4
Group: Registered
Joined: Jun 2010
Status: Offline
Reputation: 0
Post: #6
RE: php webpage caching

i HAVE many SQL questions,don't know where to say


Every shoe fits not every foot!
07-02-2010 07:10 AM
Find all posts by this user Quote this message in a reply
Wallace2010
Junior Member
**

Posts: 9
Group: Registered
Joined: Jun 2010
Status: Offline
Reputation: 0
Post: #7
RE: php webpage caching

Hey all guys here.I am new here and am a NFL fan.My name is Wallace.Nice to meet you.


nfl jersey|nfl jerseys
07-10-2010 07:12 AM
Find all posts by this user Quote this message in a reply
Hochfart
Junior Member
**

Posts: 19
Group: Registered
Joined: Aug 2010
Status: Offline
Reputation: 0
Post: #8
RE: php webpage caching

The Americancheap wedding dresses tribes kept

redesigning them depending on their location, later making a tougher and harder

versionprom dresses of the shoes which were

more suitable for a mountainous terrain. Even today Native Americans are seen wearing

men'shairstyles for prom moccasins

during ceremonial occasions. The popularity of Moccasins has grown in the recent past

solelyclip on hair

extensions
because of the softness of the material used as well as due to the

amazing look that the shoe gives to the feet. A lot of varieties of them have now

come uphair extensions for short

hair
in the market and into the mainstream of fashion too.

08-27-2010 09:16 AM
Find all posts by this user Quote this message in a reply
arielthomasn
Junior Member
**

Posts: 22
Group: Registered
Joined: Sep 2010
Status: Offline
Reputation: 0
Post: #9
RE: php webpage caching

I have just been using the bottom two lines in my projects. Does it make a major difference with regards to proxies etcetera as it doesn't seem to cause any problems with the search engine crawlers?I also use Smarty, but server's still reading data from mySQL, and I want not to do it for instance, by using the method proposed in the URL you mention.

Graphic Design Companies

Seo Agency India

09-28-2010 07:15 AM
Find all posts by this user Quote this message in a reply
Aldis
Junior Member
**

Posts: 4
Group: Registered
Joined: Oct 2010
Status: Offline
Reputation: 0
Post: #10
RE: php webpage caching

This entire site, like many, is built in PHP. PHP provides the power to simply 'pull' content from an external source, in the case of my site this is flat files but it could just as easily be an MySQL database or an XML file etc..

The downside to this is processing time, each request for one page can trigger multiple database queries, processing of the output, and formatting it for display... This can be quite slow on complex sites (or slower servers)

Ironically, these so-called 'dynamic' sites probably have very little changing content, this page will almost never be updated after the day it is written - yet each time someone requests it the scripts goes and fetches the content, applies various functions and filters to it, then outputs it to you...
i have searched this so share here,..


real estate agents gold coast
10-20-2010 08:25 AM
Find all posts by this user Quote this message in a reply
Pages (2): « First [1] 2 Next > Last »
Post Reply  Post Thread 

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites

Forum Jump: