cache path / compile path / translation
| From: | Hans-Peter Oeri | Date: | Wed, 25 Jul 2001 12:07:09 +0000 |
| Subject: | cache path / compile path / translation | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-1280@lists.php.net to get a copy of this message | ||
Hi!
Sorry to bugger you again, but I really bit into that translation thing ;)
I still prefer the translation by pre-filter and "rewrite magic" to the compile
path (that way, we can include vars/calls in the translated strings).
Looking through the caching code, I found the somewhat strange encoding of
cache paths: lots of md5 there! Actually, I would suggest using something
like "urlencode" (as in the compile path) just for debugging reasons (at least
one does not only see weird codes...). Furthermore, the encoding is not in a
method, but recreated several times... Any reason for that one?
Why not write a generic "filename plus some_id" encoding function that could be
used for the creation of the "compiled filename" as well as the "cache
filename"?
I would not suggest to combine compile_id and cache_id into one, as this would
create a lot of overhead for those not needing different compiled files... Just
have to figure out a solution there w/o changing the API too much ;)
Don't conform!
IkKampfCaspar75