From 840865d912ddbd35ab2afa8286769e23d0a514e6 Mon Sep 17 00:00:00 2001 From: Romain Ruaud Date: Tue, 8 Aug 2017 17:42:03 +0200 Subject: [PATCH] Remove trailing Mage log --- .../Model/Catalog/Product/Attribute/Source/Virtual.php | 2 -- .../code/community/Smile/VirtualCategories/Model/Rule.php | 8 -------- 2 files changed, 10 deletions(-) diff --git a/src/app/code/community/Smile/VirtualAttributes/Model/Catalog/Product/Attribute/Source/Virtual.php b/src/app/code/community/Smile/VirtualAttributes/Model/Catalog/Product/Attribute/Source/Virtual.php index 2729637a..ea1eee33 100644 --- a/src/app/code/community/Smile/VirtualAttributes/Model/Catalog/Product/Attribute/Source/Virtual.php +++ b/src/app/code/community/Smile/VirtualAttributes/Model/Catalog/Product/Attribute/Source/Virtual.php @@ -85,8 +85,6 @@ public function getOptionText($value) return $values; } - Mage::log($options); - foreach ($options as $item) { if ($item['value'] == $value) { return $item['label']; diff --git a/src/app/code/community/Smile/VirtualCategories/Model/Rule.php b/src/app/code/community/Smile/VirtualCategories/Model/Rule.php index db6285ca..4485914b 100644 --- a/src/app/code/community/Smile/VirtualCategories/Model/Rule.php +++ b/src/app/code/community/Smile/VirtualCategories/Model/Rule.php @@ -121,21 +121,14 @@ public function getQueryFromCache($categoryId, $excludedIds = array()) $cacheKey = $this->forgeCacheKey($categoryId, $excludedIds); $data = false; - Mage::log("CACHE READ : " . $cacheKey, null, "rule-cache.log"); if ($cacheInstance->getFromStaticCacheInstance($cacheKey)) { $data = $cacheInstance->getFromStaticCacheInstance($cacheKey); $this->cacheQuery($categoryId, $data, $excludedIds); - Mage::log("CACHE FOUND [STATIC]", null, "rule-cache.log"); } if ($data === false && $cacheData = Mage::app()->loadCache($cacheKey)) { $data = unserialize($cacheData); $cacheInstance->addToStaticCacheInstance($cacheKey, $data); - Mage::log("CACHE FOUND [BACKEND]", null, "rule-cache.log"); - } - - if ($data == false) { - Mage::log("CACHE NOT FOUND ", null, "rule-cache.log"); } return $data; @@ -163,7 +156,6 @@ public function cacheQuery($categoryId, $data, $excludedIds = array()) $cacheTags[] = Mage_Catalog_Model_Category::CACHE_TAG . '_' . $usedCategoryId; } - Mage::log("CACHE WRITE : " . $cacheKey, null, "rule-cache.log"); Mage::app()->saveCache(serialize($data), $cacheKey, $cacheTags, Mage_Core_Model_Cache::DEFAULT_LIFETIME); return $this;