Re: [SMARTY] A proposal - files instead of dirs...

From: Date: Sat, 11 May 2002 00:52:03 +0000
Subject: Re: [SMARTY] A proposal - files instead of dirs...
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-4160@lists.php.net to get a copy of this message
The original reason behind having subdirectories was to keep the filesystem as quick as possible. Let's say you have 30,000 files in the template_c directory. The OS would be quicker at retrieving a file from a subdirectory of 100 files than it would retrieving it from one directory with 30,000 files. If you want to, you can create your own template resource which does exactly the same thing as the default one, but doesn't use subdirectories. Michal Prinke wrote:
During execution, Smarty creates some directories inside "templates_c" and "cache". Are they really a must? Are they meant to be human-readable? In my opinion there shouldn't be ANY dir-creating because of its incompatibility with safe mode... Of course, the issue can be resolved. But when your ISP/root is very strict and not willing to apply ANY changes to PHP's/unix environment, you are in big trouble... So, instead of creating: "templates_c/N20/N2036328427/0.php" ...why don't let Smarty create: "templates_c/N20_N2036328427_0.php" ...?


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