diff --git a/Joomla5/lscache_plugin/components/com_virtuemart.php b/Joomla5/lscache_plugin/components/com_virtuemart.php index f0825ec..4292da5 100644 --- a/Joomla5/lscache_plugin/components/com_virtuemart.php +++ b/Joomla5/lscache_plugin/components/com_virtuemart.php @@ -100,15 +100,18 @@ public function plgVmAfterStoreProduct($data, $product_data=null) } - public function plgVmOnDeleteProduct($id, $ok=true) + public function plgVmOnDeleteProduct($data, $ok=true) { - if($id instanceof Event) { - return $this->plgVmOnDeleteProduct($id->getArgument('0'),$id->getArgument('1')); + if($data instanceof Event) { + return $this->plgVmOnDeleteProduct($data->getArgument('0'),$data->getArgument('1')); } if (!$ok) { return; } + + $id = $data['virtuemart_product_id']; + $category_tag = $this->getProductCategoryTags($id); $tag = "com_virtuemart, com_virtuemart.product:" . $id . $category_tag; $this->plugin->purgeObject->tags[] = $tag;