Welcome, Guest. Please login or register.
Did you miss your activation email?
May 26, 2012, 06:49:23 PM

Login with username, password and session length
Search:     Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter hier und auf unserer neuen Webseite.
155549 Posts in 21714 Topics by 7760 Members
Latest Member: gx-world
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Clear Smarty Cache in Catalog Module  (Read 499 times)
Kaliphornia

Offline Offline

Posts: 34



WWW
« on: July 01, 2011, 11:17:18 PM »

Can anyone tell me how to clear the Smarty template cache? I'm customizing list_elements.tpl and details_elements.tp l but I keep seeing the old versions no matter what I try. I've cleared my browser cache multiple times and even wrote a cache clearing script that's still not doing it:

Code:
<?php
require_once('Smarty.class.php');
$smarty = new Smarty;

$smarty->caching 1;

// clear only cache for index.tpl
//$smarty->clear_cache('index.tpl');

// clear out all cache files
$smarty->clear_all_cache();

//$smarty->display('index.tpl');
?>

Thanks!
Logged
Kaliphornia

Offline Offline

Posts: 34



WWW
« Reply #1 on: July 01, 2011, 11:28:00 PM »

Can anyone tell me how to clear the Smarty template cache? I'm customizing list_elements.tpl and details_elements.tp l but I keep seeing the old versions no matter what I try. I've cleared my browser cache multiple times and even wrote a cache clearing script that's still not doing it:

Code:
<?php
require_once('Smarty.class.php');
$smarty = new Smarty;

$smarty->caching 1;

// clear only cache for index.tpl
//$smarty->clear_cache('index.tpl');

// clear out all cache files
$smarty->clear_all_cache();

//$smarty->display('index.tpl');
?>

Thanks!

Never mind, I just figured it out. Smarty cache files are in the temp directory.
Logged
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!