| @@ 92-99 (lines=8) @@ | ||
| 89 | $result = $this->_getVarnishAdmin()->flushUrl($urlPattern); |
|
| 90 | Mage::dispatchEvent('turpentine_ban_product_cache', $result); |
|
| 91 | $cronHelper = Mage::helper('turpentine/cron'); |
|
| 92 | if ($this->_checkResult($result) && |
|
| 93 | $cronHelper->getCrawlerEnabled()) { |
|
| 94 | $cronHelper->addProductToCrawlerQueue($product); |
|
| 95 | foreach ($banHelper->getParentProducts($product) |
|
| 96 | as $parentProduct) { |
|
| 97 | $cronHelper->addProductToCrawlerQueue($parentProduct); |
|
| 98 | } |
|
| 99 | } |
|
| 100 | } |
|
| 101 | } |
|
| 102 | ||
| @@ 127-134 (lines=8) @@ | ||
| 124 | $result = $this->_getVarnishAdmin()->flushUrl($urlPattern); |
|
| 125 | Mage::dispatchEvent('turpentine_ban_product_cache_check_stock', |
|
| 126 | $result); |
|
| 127 | if ($this->_checkResult($result) && |
|
| 128 | $cronHelper->getCrawlerEnabled()) { |
|
| 129 | $cronHelper->addProductToCrawlerQueue($product); |
|
| 130 | foreach ($banHelper->getParentProducts($product) |
|
| 131 | as $parentProduct) { |
|
| 132 | $cronHelper->addProductToCrawlerQueue($parentProduct); |
|
| 133 | } |
|
| 134 | } |
|
| 135 | } |
|
| 136 | } |
|
| 137 | } |
|