Re: Selective cache clean

From: Date: Wed, 20 Mar 2002 15:48:15 +0000
Subject: Re: Selective cache clean
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-3125@lists.php.net to get a copy of this message
Hi, Monte Ohrt wrote:
This isn't currently possible, but it has been brought up before. The cacheid is not part of the filename, nor is it in the cached file. If you wanted to delete by partial cacheid we'd have to adjust something, like put the cacheid in the filename. Smarty used to do this in way earlier versions, but then we had to URL-encode cacheids and you can end
Hmm.. If I remember correctly, the filenames is some kind of md5, isn't it? Wouldn't it be possible to generate an md5 of the string I'm looking for, and deleting everything from the cache where that generated md5 is a substring of the filename? Or is an md5 of a substring of a string not a substring of the md5 of the string? (Complex sentence ;-) Greetings, Ivo -- Ivo Jansch <ivo@ibuildings.nl> ibuildings.nl BV - information technology http://www.ibuildings.nl

« previous php.smarty.general (#3125) next »