Get Smarty


Smarty Icon

You may use the Smarty logo according to the trademark notice.

Smarty Template Engine Smarty Template Engine

For sponsorship, advertising, news or other inquiries, contact us at:

Sites Using Smarty

Buy cheap glasses from and save up to 80%.

Where to buy prescription glasses? is your best choice!

Visit for cheap soccer cleats, sneakers and Soccer Jerseys updates



clear_all_cache() — clears the entire template cache


void clear_all_cache(int expire_time);

As an optional parameter, you can supply a minimum age in seconds the cache files must be before they will get cleared.

Example 13.6. clear_all_cache

// clear the entire cache

// clears all files over one hour old


See also clear_cache(), is_cached() and the caching page.

No comments for this page.