Re: Re: Using Pear Cache

From: Date: Wed, 26 Dec 2001 16:10:37 +0000
Subject: Re: Re: Using Pear Cache
References: 1 2 3  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-637@lists.php.net to get a copy of this message
Hello, Andreas Otto wrote: > > Hi Manuel, > > > > Since the Pear Cache is working for other people I must have done > > > something wrong. I would therfore very much appreaciate it if someone > > > could have a look at the two attached examples. > > > > I don't know if that is the reason for your problem, but PEAR cache to > > file class does not seem to lock cache files to prevent concurrent cache > > updating. > > Well, I can't see that this might be the problem since the PEAR Cache is > working for a lot of people. At the moment I guess it is me doing somehting > wrong but I don't know what that might be. The fact that you don't see people complaining, does not meant that the code is capable of handling concurrent requests. It may just mean that not enough people have tried PEAR Cache in a very busy site with frequent cache data updates. The other class that I pointed you too has been in use in the PHP Classes Repository itself which is very busy and at least once every day the caches of the pages that display class entries are updated because they need to display updated rank positions of the classes and their authors. Currently there are more than 400 pages cached in there but that increases over the day. > > You may want to look into this simpler cache class (it is just a single > > class file, not a bunch of classes that you need to load) that does file > > locking properly and it has been succesfully used in the PHP Classes > > repository site, which is a very busy site, to cache the content of > > pages with great efficiency. You may find a usage example in the actual > > documentation HTML page. > > I might give it a try if I don't see any light at the end of the "Cache > tunnel". Thanks for your help Manuel. Yes, even though PEAR Cache problem that is affecting you may not be about concurrent updates, at least you may be certain that the file cache class that I pointed you too works well and efficiently because at least one busy site depends on it. Feel free to mail me back if you need any help on using that other class. I think it is too bad nobody here is helping regarding the PEAR Cache class but I guess you can't ask much from Open Source projects as most work is done on volunteer basis. Regards, Manuel Lemos

« previous php.pear.general (#637) next »