Cache_Lite & Write Control
| From: | Michael Caplan | Date: | Tue, 12 Apr 2005 18:30:56 +0000 |
| Subject: | Cache_Lite & Write Control | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-18709@lists.php.net to get a copy of this message | ||
Hi,
I'm currently working with Cache_Lite, and having some issues cleaning up
cached items. The scenario is this:
1. A user comes in, page isn't cached, it is then cached
2. Second hit delivers cached page
3. Under certain circumstances, we need to force the regeneration of
the cached object so we do a recursive unlink on the files
4. A new cache object is created the next time the user comes in.
However, between 3 and 4 we sometimes have a breakdown. $cache->save()
sometimes returns false. We are using write control. Could it be that
write control is returning a bad false? For example: if after the file is
written, and before it reads it back in to see if the data is equal, another
process comes in and replaces it, would not write control fail, even though
the data is good - insofar that the new data written by the new process is
good? If that is the case, is write control not reliable, and probably
shouldn't be trusted?
Thanks,
Michael
CONFIDENTIALITY NOTICE
This message contains confidential information intended only for the use of
the individual or entity named as recipient. Any dissemination, distribution
or copying of this communication by anyone other than the intended recipient
is strictly prohibited. If you have received this message in error, please
immediately notify us and delete your copy. Thank you.
AVIS DE CONFIDENTIALITÉ
Les informations contenues aux présentes sont de nature privilégiée et
confidentielle. Elles ne peuvent être utilisées que par la personne ou
l'entité dont le nom paraît comme destinataire. Si le lecteur du présent
message n'est pas le destinataire prévu, il est par les présentes prié de
noter qu'il est strictement interdit de divulguer, de distribuer ou de
copier ce message. Si ce message vous a été transmis par mégarde, veuillez
nous en aviser immédiatement et supprimer votre copie. Merci.