|
Posted by Matthew Weier O'Phinney on 04/07/05 05:32
* Cabbar Duzayak <cabbar@gmail.com>:
> Hi All,
>
> I am using PHP on Apache/Linux with mod_php4. I need to implement a
> lazy cache for some resource which should be updated say every 1 hour
> in a way that the first person who arrives after an hour will be
> updating the cache. As you can imagine, I need to implement a write
> lock in this case, the idea is:
<snip>
> What do you guys recommend?
PEAR's Cache_Lite package. Seriously -- they've already done this. Give
it a try; I use it regularly, and it *just* *works*.
--
Matthew Weier O'Phinney | WEBSITES:
Webmaster and IT Specialist | http://www.garden.org
National Gardening Association | http://www.kidsgardening.com
802-863-5251 x156 | http://nationalgardenmonth.org
mailto:matthew@garden.org | http://vermontbotanical.org
Navigation:
[Reply to this message]
|