You may have 2 requests both trying tocreate 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.
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php