Re: Smarty compiling & caching issues - possible solution

From: Date: Fri, 05 Oct 2001 16:30:11 +0000
Subject: Re: Smarty compiling & caching issues - possible solution
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-1612@lists.php.net to get a copy of this message
Hi, Monte Ohrt wrote:
At first I thought this would be easy to fix. If caching is true and compile_check is true, process the template. If it needed a recomiple, then clear the cache file. But what happens if a template included by the main template was changed? You won't see the changes because the cached file is based on the top level template. maybe you need to make Smarty even more like a "real" compiler, and
build compile dependencies. When you compile a template, you could build a list of all sub-templates (recursively), store that to some file, and compile check would use that to decide if a top level template has changed. You'd need to carefuly think about the data structure to store dependencies so that it's fast to handle and not too big... Mike -- Mike Krus email: mwkrus@yahoo.com http://www.newsisfree.com/module.php?mod=blog&op=view&name=Mike+Krus Jabber: mkrus@jabber.com ICQ: 30900412

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