Skip to content

Commit

Permalink
use site secret key instead installation_id
Browse files Browse the repository at this point in the history
  • Loading branch information
ahilles107 committed May 13, 2015
1 parent 7291a14 commit 1487df2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions newscoop/library/Newscoop/Services/CacheService.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public function getCacheKey($id, $namespace = null)
}

// make cache key short
$id = base64_encode($id.'|'.$this->systemPreferences->installation_id);
$id = base64_encode($id.'|'.$this->systemPreferences->SiteSecretKey);

if ($namespace) {
$namespace = $this->getNamespace($namespace);
Expand All @@ -115,7 +115,7 @@ public function getNamespace($namespace)
return $this->getCacheDriver()->fetch($namespace);
}

$value = $namespace .'|'.time().'|'.$this->systemPreferences->installation_id;
$value = $namespace .'|'.time().'|'.$this->systemPreferences->SiteSecretKey;
$this->getCacheDriver()->save($namespace, $value);

return $value;
Expand Down

0 comments on commit 1487df2

Please sign in to comment.