PrestaShop/PrestaShop — pull request #38 by alexsegura (2012-11-23 21:03:35+00:00)
Title: Deprecated Tools :: clearCache()

Tools :: clearCache doesn't really do what it should: it clears the whole Smarty cache and doesn't use the optional parameters.

public static function clearCache($smarty, $tpl = false, $cache_id = null, $compile_id = null) {
return $smarty->clearAllCache();
}

It is used in very few parts of the code, so I replaced call to `Tools :: clearCache` with direct calls to Smarty.

Also now `Module :: _clearCache` works correctly, using all the optional parameters.

The goal here is to reduce the dependency to the huge `Tools` class