Skip to content
Extraits de code Groupes Projets
Valider 9e87de8c rédigé par sgiehl's avatar sgiehl
Parcourir les fichiers

fixed missing variable broke CacheFile::get

parent 866ee5bd
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -36,8 +36,8 @@ class Piwik_CacheFile ...@@ -36,8 +36,8 @@ class Piwik_CacheFile
const MINIMUM_TTL = 60; const MINIMUM_TTL = 60;
/** /**
* @param string $directory directory to use * @param string $directory directory to use
* @param int TTL * @param int $timeToLiveInSeconds TTL
*/ */
public function __construct($directory, $timeToLiveInSeconds = 300) public function __construct($directory, $timeToLiveInSeconds = 300)
{ {
...@@ -66,6 +66,7 @@ class Piwik_CacheFile ...@@ -66,6 +66,7 @@ class Piwik_CacheFile
$expires_on = false; $expires_on = false;
// We are assuming that most of the time cache will exists // We are assuming that most of the time cache will exists
$cacheFilePath = $this->cachePath . $id . '.php';
$ok = @include($cacheFilePath); $ok = @include($cacheFilePath);
if ($ok && $cache_complete == true) { if ($ok && $cache_complete == true) {
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter