Posted by pdc on 07/04/06 17:11
I need a simple buffering method to cache PHP script-files to reduce
the number of db queries. This method should work on a single php
script and not on the whole web-page generated. This because my portal
based on PHP-Nuke uses a big number of scripts used by inclusion and
each script need a refresh time different. For example the online
members list should be refreshed every 10 seconds, the news every 10
minutes and the articles every 10 houres...
The perfect solution should be to add in every script to be buffered a
PHP directive in the first line specifing the expire-time for that
script.
Any idea?
[Back to original message]
|