Re: disable caching

From: Date: Fri, 12 Oct 2001 13:18:13 +0000
Subject: Re: disable caching
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-1686@lists.php.net to get a copy of this message
On Fri, 12 Oct 2001, Marc Logemann wrote: > Hi, > > one question, is there a chance to disable smarty caching with some kind > of: $smarty->disableCaching(true); ? > > Following Scenario: > > As you know, we ship a complete product, i code the setup process right now. > The problem is, i need two html screens created by smarty. But in this stage of > setup, i didnt detected if the user has correctly set write permission > on the directory, so i cant make a "mkdir" at this stage. Resulting in that > i didnt have a smarty compile dir. > > Now it would be extremly cool to disable caching for some screens, and enable > it, in the moment where i am sure that a compile dir created by setup. Well, you can just do $smarty->caching = false or true, as you see fit. -Andrei * What were the first 15 billion years of the universe like for you? *

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