本文整理匯總了PHP中SpecificPrice::_specificPriceCache方法的典型用法代碼示例。如果您正苦於以下問題:PHP SpecificPrice::_specificPriceCache方法的具體用法?PHP SpecificPrice::_specificPriceCache怎麽用?PHP SpecificPrice::_specificPriceCache使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類SpecificPrice
的用法示例。
在下文中一共展示了SpecificPrice::_specificPriceCache方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: flushCache
/**
* Flush local cache
*/
protected function flushCache()
{
SpecificPrice::$_specificPriceCache = array();
SpecificPrice::$_filterOutCache = array();
SpecificPrice::$_cache_priorities = array();
SpecificPrice::$_no_specific_values = array();
Product::flushPriceCache();
}
示例2: delete
public function delete()
{
if (parent::delete()) {
// Flush cache when we deletind a new specific price
SpecificPrice::$_specificPriceCache = array();
Product::flushPriceCache();
// Refresh cache of feature detachable
Configuration::updateGlobalValue('PS_SPECIFIC_PRICE_FEATURE_ACTIVE', SpecificPrice::isCurrentlyUsed($this->def['table']));
return true;
}
return false;
}