Skip to content

Commit

Permalink
Merge pull request #242 from lvtongda/patch-1
Browse files Browse the repository at this point in the history
Update Config.php
  • Loading branch information
jemygraw authored Aug 24, 2017
2 parents 80de39b + 36d4120 commit 57cca34
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Qiniu/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,14 +121,14 @@ private function getZone($accessKey, $bucket)
$cacheId = "$accessKey:$bucket";

if (isset($this->zoneCache[$cacheId])) {
print("from cache\n");
//print("from cache\n");
$zone = $this->zoneCache[$cacheId];
} elseif (isset($this->zone)) {
print("from set\n");
//print("from set\n");
$zone = $this->zone;
$this->zoneCache[$cacheId] = $zone;
} else {
print("from query\n");
//print("from query\n");
$zone = Zone::queryZone($accessKey, $bucket);
$this->zoneCache[$cacheId] = $zone;
}
Expand Down

0 comments on commit 57cca34

Please sign in to comment.