]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - application/CachedPage.php
Merge pull request #1234 from virtualtam/lint
[github/shaarli/Shaarli.git] / application / CachedPage.php
index 50cfa9ac0d30add914b39ea2bd5c2a5bc0abef6c..e11cc52d01e3aeac07142c476d76e35bf7b88229 100644 (file)
@@ -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()
     {