Re: output caching

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

On 10/29/2003 01:48 PM, Brandon wrote:
What is the best way to implement output chaching with PHP?

I've only done a small amount of PHP work, I'm coming from a mostly
ASP/ASP.NET background. In ASP.NET you can set a directive at the top of
each script if the page should cache or not, how many seconds it shoudl be
cached, and which combination of QueryString or HTTP Post variables it
should consider when caching. Once cached, clients get served the output of
the requested script, and the script is only executed once its expiration is
reached.

Is there a similar mechanism with PHP, or any sort of add-on?

You may want to try this caching class that lets you cache whole pages or excerpts for a given period of time, until a given hour and just forever.


The cache timeout is defined by your application. It should define it to last until the content that changed it is updated.

If you do not know when the content will be updated next time, you can tell this class to cache the content forever, and in the code that updates the content, you can call the class voidcache() function to invalidate the force it to be regenerated next time your application outputs that content.

http://www.phpclasses.org/filecacheclass

--

Regards,
Manuel Lemos

Free ready to use OOP components written in PHP
http://www.phpclasses.org/

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux