Re: Cache_Lite 1.0 ?

From: Date: Fri, 08 Nov 2002 07:55:44 +0000
Subject: Re: Cache_Lite 1.0 ?
References: 1 2 3  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-10607@lists.php.net to get a copy of this message
> I don't have to append anything else to this list. And filelocking is > somehow better than before, isn't it? If just see this log-entry: > Mon Oct 21 13:10:18 2002 (2 weeks, 3 days ago) > adding fileLocking to file's constuctor. this allows users to use file > locking in the file container without modifying the original php > code.--dviner Indeed, fileLocking isn't enough to prevent from cache corruption. Because when you remove a file, you can't use fileLocking. Moreover, it doesn't work with distributed file system (NFS...) and with multithread servers... So to prevent from cache corruption, the best way is a md5 (or crc32...) hash embedded in the cache file. Have a look at 'Cache_Lite / docs / technical' file for more details. Yet, there is another way (which sounds very interesting), it's the use of Direct I/O support (has to be compiled into PHP (--enable-dio)). It's an idea of Patrick O'Lone. I have put it in the TODO file of Cache_Lite. Fab

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