Re: [SMARTY-DEV] Re: speed improvement idea: path caching
| From: | Monte Ohrt | Date: | Sat, 21 Jun 2003 17:00:30 +0000 |
| Subject: | Re: [SMARTY-DEV] Re: speed improvement idea: path caching | ||
| References: | 1 | Groups: | php.smarty.dev |
| Request: | Send a blank email to php-smarty-dev+get-1662@lists.php.net to get a copy of this message | ||
> Isn't it possible (and simple) to cache paths
> (or use them directly) right in the compiled templates?
> I.e. modify $this->_load_plugins() and $this->_smarty_include()
> to work with full paths. This way path calculations are needed
> only at compile time, and no additional caches needed.
We do that where possible, But there are many places where the path is
only known at runtime. Examples:
{include file=$my_file}
{config_load file=$my_file}