Re: Locking in PHP (Question for PHP Gurus)
| From: | Matthew Weier O'Phinney | Date: | Thu, 07 Apr 2005 02:32:15 +0000 |
| Subject: | Re: Locking in PHP (Question for PHP Gurus) | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-212480@lists.php.net to get a copy of this message | ||
* 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