Skip to content
This repository has been archived by the owner on Apr 4, 2021. It is now read-only.

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 f3b93a0 commit 4e5e568
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion PhealMemCache.php
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 4e5e568

Please sign in to comment.