smarty clear cache| Clear cache in smarty | clear all cache | Smarty cache

Clear chache in smarty

smarty Clear cache

For Smarty version 2

$smarty->clear_all_cache();

For Smarty version 3

$smarty->clearAllCache();

Since Smarty version 3.1.14 it is possible to delete cache files by their individual expiration time at creation by passing constant SMARTY::CLEAR_EXPIRED as expire_time parameter.