Thursday, 7 June 2018

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.

for more visit here WordPress Developer

No comments:

Post a Comment