Skip to content
This repository has been archived by the owner on Oct 28, 2020. It is now read-only.

Commit

Permalink
fix: make it possible to use general stats
Browse files Browse the repository at this point in the history
  • Loading branch information
d3f3kt committed Sep 25, 2015
1 parent 2686b56 commit 67ac7fd
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions Cache/LoggingMemcache.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,11 @@ public function getStats($type='',$slabid=0,$limit=100) {
$arguments = array($type,$slabid,$limit);
}
list($_type,$_slabid,$_limit) = array($type,$slabid,$limit);
$result = parent::getStats($_type,$_slabid,$_limit);
if ($_type == '') {
$result = parent::getStats();
} else {
$result = parent::getStats($_type, $_slabid, $_limit);
}
list($type,$slabid,$limit) = array($_type,$_slabid,$_limit);
if ($this->logging) {
$time = microtime(true) - $start;
Expand All @@ -173,7 +177,11 @@ public function getExtendedStats($type='',$slabid=0,$limit=100) {
$arguments = array($type,$slabid,$limit);
}
list($_type,$_slabid,$_limit) = array($type,$slabid,$limit);
$result = parent::getExtendedStats($_type,$_slabid,$_limit);
if ($_type == '') {
$result = parent::getExtendedStats();
} else {
$result = parent::getExtendedStats($_type, $_slabid, $_limit);
}
list($type,$slabid,$limit) = array($_type,$_slabid,$_limit);
if ($this->logging) {
$time = microtime(true) - $start;
Expand Down

0 comments on commit 67ac7fd

Please sign in to comment.