clear_cache()

clear_cache() -- clears the cache for a specific template

Description

void clear_cache ( string template [, string cache_id [, string compile_id [, int expire_time]]])

Example 13-1. clear_cache()

<?php
// clear the cache for a template
$smarty->clear_cache('index.tpl');

// clear the cache for a particular cache id in an multiple-cache template
$smarty->clear_cache('index.tpl''MY_CACHE_ID');
?>

See also clear_all_cache() and caching section.