Skip to content

Commit

Permalink
* renamed file to match classname
Browse files Browse the repository at this point in the history
* fixed key generation (apikey/userid should be excluded)
  • Loading branch information
dhoffend committed Apr 19, 2011
1 parent 2af424e commit 731833d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion PhealMemCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ public function __construct($options = array())
protected function getKey($userid, $apikey, $scope, $name, $args) {
$key = "$userid|$apikey|$scope|$name";
foreach($args as $k=>$v) {
$key .= "|$k|$v";
if($k != 'userid' && $k != 'apikey')
$key .= "|$k|$v";
}
return "Pheal_" . md5($key);
}
Expand Down

0 comments on commit 731833d

Please sign in to comment.