Skip to content

Commit

Permalink
moved cache keys to sha1 (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbumbacea committed Oct 12, 2016
1 parent 254de7f commit 52ee084
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/CacheBundle/DependencyInjection/Interceptor.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ protected function getCacheKey(MethodInvocation $invocation, $refParams, Cache $
$cacheKey .= "_extra_" . $invocation->object->getExtraKey();
}

$this->logger->debug('Computed raw cache key: ' . $cacheObj->getCache() . $cacheKey);
$cacheKey = md5($cacheObj->getCache() . $cacheKey);
$cacheKey = $cacheObj->getCache() . sha1($cacheKey);
$this->logger->debug('Computed raw cache key: ' . $cacheKey);

return $cacheKey;
}
Expand Down

0 comments on commit 52ee084

Please sign in to comment.