Please read the file of README :
as follow:
---------------------------------------------
Have all been changed to local method calls such as:
$smarty->clearAllCache()
$smarty->registerFoo()
$smarty->unregisterFoo()
$smarty->testInstall()
etc.
---------------------------------------------
then just use the function clearAllCache() instead of clear_all_cache()