Skip to content

Commit

Permalink
Remove trailing Mage log
Browse files Browse the repository at this point in the history
  • Loading branch information
romainruaud committed Aug 8, 2017
1 parent 838695c commit 840865d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,6 @@ public function getOptionText($value)
return $values;
}

Mage::log($options);

foreach ($options as $item) {
if ($item['value'] == $value) {
return $item['label'];
Expand Down
8 changes: 0 additions & 8 deletions src/app/code/community/Smile/VirtualCategories/Model/Rule.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 840865d

Please sign in to comment.