What is the best way to do server-side output caching in PHP?
Posted
by Paul Tarjan
on Stack Overflow
See other posts from Stack Overflow
or by Paul Tarjan
Published on 2010-02-05T06:54:02Z
Indexed on
2010/03/28
7:23 UTC
Read the original article
Hit count: 213
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?
© Stack Overflow or respective owner