Re: cache path / compile path / translation

From: Date: Wed, 25 Jul 2001 13:42:10 +0000
Subject: Re: cache path / compile path / translation
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-1283@lists.php.net to get a copy of this message
Hi! Quoting Monte Ohrt <monte@ispi.net>: > We used md5 because it was filename safe, and it helped us to break up > the cache files into sub-directories to help maintain potentially > thousands of files, much like netscape handles its cache files. Yep, I understand the directory size problem. Even MORE interesting to apply the same functionality to the compiled templates... (as, if we have one per language, these could add up to an interesting number, too) > laziness? :-) I suppose because it is done in two places and it is > four lines of code, so we never bothered. We could break that into its own > class method, it wouldn't hurt. It would however allow: a) its use for compiled templates as well b) the use of a different algorithm for debugging purposes while maintaining the MD5 hashes in the production environment. But what do you think of introducing a compile_id (comparable to cache_id for cache purposes) ? Don't conform! IkKampfCaspar75

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