problem when multiple processing

From: Date: Tue, 26 Mar 2002 09:43:17 +0000
Subject: problem when multiple processing
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-5111@lists.php.net to get a copy of this message
I've found a problem in PEAR when trying to cache the same function in the same time (2 processes running in the same time the Cache_Function->call function): - two (2) cache files are created, that are almost identical, except for the id from the beginning of the file). - the function cached has no parameters - the id created in the pear/Cache/Function.php with the $id = md5(serialize($arguments)); is the same, and yet it creates another cache file that differs with the previous one (or the one created simultaneously) with the last number from the id written in the cache file. - the problem is that, after many runs, the cache becomes huge. Doesn't PEAR erases old or expired functions ? Can anyone tell me if you've found a solution to this problem ? Thanks in advance, Lucian COZMA lcozma@interakt.ro

« previous php.pear.dev (#5111) next »