Merge pull request #836 from mkdgs/patch-1
[*] MO : blocktopmenu adding clear cache of AddAfter hook for Cms, Supplier, Manufaturer and Product
This commit is contained in:
commit
0dbaa59985
1 file changed
+24
@@ -72,12 +72,16 @@ class Blocktopmenu extends Module
|
|||||||
!$this->registerHook('actionObjectCategoryAddAfter') ||
|
!$this->registerHook('actionObjectCategoryAddAfter') ||
|
||||||
!$this->registerHook('actionObjectCmsUpdateAfter') ||
|
!$this->registerHook('actionObjectCmsUpdateAfter') ||
|
||||||
!$this->registerHook('actionObjectCmsDeleteAfter') ||
|
!$this->registerHook('actionObjectCmsDeleteAfter') ||
|
||||||
|
!$this->registerHook('actionObjectCmsAddAfter') ||
|
||||||
!$this->registerHook('actionObjectSupplierUpdateAfter') ||
|
!$this->registerHook('actionObjectSupplierUpdateAfter') ||
|
||||||
!$this->registerHook('actionObjectSupplierDeleteAfter') ||
|
!$this->registerHook('actionObjectSupplierDeleteAfter') ||
|
||||||
|
!$this->registerHook('actionObjectSupplierAddAfter') ||
|
||||||
!$this->registerHook('actionObjectManufacturerUpdateAfter') ||
|
!$this->registerHook('actionObjectManufacturerUpdateAfter') ||
|
||||||
!$this->registerHook('actionObjectManufacturerDeleteAfter') ||
|
!$this->registerHook('actionObjectManufacturerDeleteAfter') ||
|
||||||
|
!$this->registerHook('actionObjectManufacturerAddAfter') ||
|
||||||
!$this->registerHook('actionObjectProductUpdateAfter') ||
|
!$this->registerHook('actionObjectProductUpdateAfter') ||
|
||||||
!$this->registerHook('actionObjectProductDeleteAfter') ||
|
!$this->registerHook('actionObjectProductDeleteAfter') ||
|
||||||
|
!$this->registerHook('actionObjectProductAddAfter') ||
|
||||||
!$this->registerHook('categoryUpdate') ||
|
!$this->registerHook('categoryUpdate') ||
|
||||||
!$this->registerHook('actionShopDataDuplication') ||
|
!$this->registerHook('actionShopDataDuplication') ||
|
||||||
!$this->installDB())
|
!$this->installDB())
|
||||||
@@ -858,6 +862,11 @@ class Blocktopmenu extends Module
|
|||||||
$this->clearMenuCache();
|
$this->clearMenuCache();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function hookActionObjectCmsAddAfter($params)
|
||||||
|
{
|
||||||
|
$this->clearMenuCache();
|
||||||
|
}
|
||||||
|
|
||||||
public function hookActionObjectSupplierUpdateAfter($params)
|
public function hookActionObjectSupplierUpdateAfter($params)
|
||||||
{
|
{
|
||||||
$this->clearMenuCache();
|
$this->clearMenuCache();
|
||||||
@@ -868,6 +877,11 @@ class Blocktopmenu extends Module
|
|||||||
$this->clearMenuCache();
|
$this->clearMenuCache();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function hookActionObjectSupplierAddAfter($params)
|
||||||
|
{
|
||||||
|
$this->clearMenuCache();
|
||||||
|
}
|
||||||
|
|
||||||
public function hookActionObjectManufacturerUpdateAfter($params)
|
public function hookActionObjectManufacturerUpdateAfter($params)
|
||||||
{
|
{
|
||||||
$this->clearMenuCache();
|
$this->clearMenuCache();
|
||||||
@@ -878,6 +892,11 @@ class Blocktopmenu extends Module
|
|||||||
$this->clearMenuCache();
|
$this->clearMenuCache();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function hookActionObjectManufacturerAddAfter($params)
|
||||||
|
{
|
||||||
|
$this->clearMenuCache();
|
||||||
|
}
|
||||||
|
|
||||||
public function hookActionObjectProductUpdateAfter($params)
|
public function hookActionObjectProductUpdateAfter($params)
|
||||||
{
|
{
|
||||||
$this->clearMenuCache();
|
$this->clearMenuCache();
|
||||||
@@ -888,6 +907,11 @@ class Blocktopmenu extends Module
|
|||||||
$this->clearMenuCache();
|
$this->clearMenuCache();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function hookActionObjectProductAddAfter($params)
|
||||||
|
{
|
||||||
|
$this->clearMenuCache();
|
||||||
|
}
|
||||||
|
|
||||||
public function hookCategoryUpdate($params)
|
public function hookCategoryUpdate($params)
|
||||||
{
|
{
|
||||||
$this->clearMenuCache();
|
$this->clearMenuCache();
|
||||||
|
|||||||
Reference in new issue
Block a user