X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=application%2FCachedPage.php;h=e11cc52d01e3aeac07142c476d76e35bf7b88229;hb=1004742f09b55ff781c13745781b9a7e90986faa;hp=50cfa9ac0d30add914b39ea2bd5c2a5bc0abef6c;hpb=01e48f269df59e02798dad4a698c125d76b0ed70;p=github%2Fshaarli%2FShaarli.git diff --git a/application/CachedPage.php b/application/CachedPage.php index 50cfa9ac..e11cc52d 100644 --- a/application/CachedPage.php +++ b/application/CachedPage.php @@ -7,9 +7,6 @@ class CachedPage // Directory containing page caches private $cacheDir; - // Full URL of the page to cache -typically the value returned by pageUrl() - private $url; - // Should this URL be cached (boolean)? private $shouldBeCached; @@ -27,7 +24,6 @@ class CachedPage { // TODO: check write access to the cache directory $this->cacheDir = $cacheDir; - $this->url = $url; $this->filename = $this->cacheDir.'/'.sha1($url).'.cache'; $this->shouldBeCached = $shouldBeCached; } @@ -35,7 +31,7 @@ class CachedPage /** * Returns the cached version of a page, if it exists and should be cached * - * @return a cached version of the page if it exists, null otherwise + * @return string a cached version of the page if it exists, null otherwise */ public function cachedVersion() {