Online Forum To Support Coders With Technical Assistance - Read Write Execute

Clear chache in smarty

Ankit Agrawal
Ankit Agrawal
Published on August 30, 2017 · 1 min read

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.

Was this article helpful?
Ankit Agrawal

Ankit Agrawal

Author & Senior Engineer at CodeExecute

Writing practical engineering guides, debugging real-world bottlenecks, and creating free tools for developer productivity.

← Previous Article Force SSL redirection in cakephp Next Article → Get current full url in php