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

Commit

Permalink
Merge pull request #58 from d3f3kt/fix_stats
Browse files Browse the repository at this point in the history
fix: make it possible to use general stats
  • Loading branch information
Maurits van der Schee committed Sep 25, 2015
2 parents 2686b56 + 67ac7fd commit ef461e1
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 ef461e1

Please sign in to comment.