datawebcorp Posted June 13, 2009 Share Posted June 13, 2009 I am making heavy mods to my client and order templates. For each mod I make, no matter how minor, I have to clear the templates_c (cache) folder before I see the changes. Is there a way to disable cache temporarily during the modification process so I can skip the step of having to clear the cache constantly? 0 Quote Link to comment Share on other sites More sharing options...
Redactuk Posted October 4, 2009 Share Posted October 4, 2009 Hi guys Searched and found this post but no replies. Cane the cache be temporarily disabled while theming a site? thanks 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted October 4, 2009 Share Posted October 4, 2009 Not sure if it will work within the template but you could try this Put this code at the top of the template {php} $smarty->force_compile = true; {/php} Make sure to remove it once you have finished editing. 0 Quote Link to comment Share on other sites More sharing options...
downunder Posted July 21, 2010 Share Posted July 21, 2010 This doesn't seem to work, would be great if this was a setting in the configuration.php since its quite annoying having to delete those temp files EVERY time. Looks like u cant turn off caching during its display. 0 Quote Link to comment Share on other sites More sharing options...
Damo Posted July 21, 2010 Share Posted July 21, 2010 Why not devnull the templates_c directory with a symlink. % rm -rf templates_c % ln -s /dev/null templates_c If the compiled templates aren't found then the page is generated again. Haven't tried it just thought it may be an option. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.