What is the best way to do server-side output caching in PHP?
- by Paul Tarjan
I have a pretty complicated index.php now, and I would like to only run it once every hour. What is the best way to achieve this? Some ideas I've had
Put it in APC with apc_store($page, 60*60*) - I feel this isn't what APC is for and will probably be doing something bad to the other parts of my site
Save the output to a filesystem somewhere - Then apache needs write access somewhere which might be a pain
Somehow setup apache to do the caching for me - Is this possible?