本文整理汇总了PHP中Mage_Core_Model_Config::cleanCache方法的典型用法代码示例。如果您正苦于以下问题:PHP Mage_Core_Model_Config::cleanCache方法的具体用法?PHP Mage_Core_Model_Config::cleanCache怎么用?PHP Mage_Core_Model_Config::cleanCache使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Mage_Core_Model_Config
的用法示例。
在下文中一共展示了Mage_Core_Model_Config::cleanCache方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: cleanCache
public function cleanCache()
{
if (Mage::registry('disable_clean_cache')) {
return true;
}
return parent::cleanCache();
}
示例2: setModuleConfiguration
protected function setModuleConfiguration($DATA, $API)
{
$mageselc = new Mage_Core_Model_Config();
$mageselc->cleanCache();
// remove cache
$allIdShops = $DATA->allShopIds;
foreach ($allIdShops as $idShop) {
$mageselc->saveConfig(strtolower('avisverifies/system/PROCESSINIT'), $API->msg('init_reviews_process'), 'stores', $idShop);
//Implode si plusieurs éléments donc is_array
$ORDERSTATESCHOOSEN = is_array($API->msg('id_order_status_choosen')) ? implode(';', $API->msg('id_order_status_choosen')) : $API->msg('id_order_status_choosen');
$mageselc->saveConfig(strtolower('avisverifies/system/ORDERSTATESCHOOSEN'), $ORDERSTATESCHOOSEN, 'stores', $idShop);
$mageselc->saveConfig(strtolower('avisverifies/system/DELAY'), $API->msg('delay'), 'stores', $idShop);
$mageselc->saveConfig(strtolower('avisverifies/system/GETPRODREVIEWS'), $API->msg('get_product_reviews'), 'stores', $idShop);
$mageselc->saveConfig(strtolower('avisverifies/system/DISPLAYPRODREVIEWS'), $API->msg('display_product_reviews'), 'stores', $idShop);
$mageselc->saveConfig(strtolower('avisverifies/system/SCRIPTFIXE_ALLOWED'), $API->msg('display_fixe_widget'), 'stores', $idShop);
$mageselc->saveConfig(strtolower('avisverifies/system/SCRIPTFIXE_POSITION'), $API->msg('position_fixe_widget'), 'stores', $idShop);
$mageselc->saveConfig(strtolower('avisverifies/system/SCRIPTFLOAT_ALLOWED'), $API->msg('display_float_widget'), 'stores', $idShop);
$mageselc->saveConfig(strtolower('avisverifies/system/URLCERTIFICAT'), $API->msg('url_certificat'), 'stores', $idShop);
//Implode si plusieurs éléments donc is_array
$FORBIDDENEMAIL = is_array($API->msg('forbidden_mail_extension')) ? implode(';', $API->msg('forbidden_mail_extension')) : $API->msg('forbidden_mail_extension');
$mageselc->saveConfig(strtolower('avisverifies/system/FORBIDDEN_EMAIL'), $FORBIDDENEMAIL, 'stores', $idShop);
$mageselc->saveConfig(strtolower('avisverifies/system/SCRIPTFIXE'), str_replace(array("\r\n", "\n"), '', stripslashes(str_replace('\\"', '"', $API->msg('script_fixe_widget')))), 'stores', $idShop);
$mageselc->saveConfig(strtolower('avisverifies/system/SCRIPTFLOAT'), str_replace(array("\r\n", "\n"), '', stripslashes(str_replace('\\"', '"', $API->msg('script_float_widget')))), 'stores', $idShop);
// Force Product Parent ID.
$mageselc->saveConfig(strtolower('avisverifies/extra/FORCE_PRODUCT_PARENT_ID'), $API->msg('force_product_parent_id'), 'stores', $idShop);
}
Mage::app()->cleanCache();
// remove cache
$mageselc->cleanCache();
// remove cache
$reponse['message'] = $this->_getModuleAndSiteInfos($DATA);
$reponse['debug'] = "La configuration du site a été mise à jour";
$reponse['return'] = 1;
//A definir
$reponse['query'] = $API->msg('query');
return $reponse;
}