Re: problem when multiple processing

From: Date: Tue, 26 Mar 2002 14:30:03 +0000
Subject: Re: problem when multiple processing
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-5116@lists.php.net to get a copy of this message
Hello, PEAR! > 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 ? The another problem is : - will be nice to add arguments for ->save() function in cache, like (user:group) for indificate owner for saving cache-files. On my FreeBSD, httpd runs from user "www", but my id is "kvn", and if I create in my home_directory/public_html/ cache-files, I can't remove tham manualy becouse owner is "www", and not "kvn".. Thanks. -- Best regards, KVN. PHP4You (<http://php4you.kiev.ua/>) PEAR [ru] (<http://pear.php.net/manual/ru/>) mailto:kvn@php.net

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