fix Smarty clearCompiledTemplate and clearCache from trunk