Re: Locking in PHP (Question for PHP Gurus)

From: Date: Thu, 07 Apr 2005 03:58:52 +0000
Subject: Re: Locking in PHP (Question for PHP Gurus)
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-212496@lists.php.net to get a copy of this message
I would use a cronjob to make the entry rather than a user, why let the poor guy wait for you to create the content
You may have 2 requests both trying to
create the new cache entry, but that is much cleaner than having to deal with locking. Do a tempnam() to get a temp file to write to and then do a rename() if this is a filesystem thing.


« previous php.general (#212496) next »