]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - application/LinkDB.php
CachedPage: move to a proper file, add tests
[github/shaarli/Shaarli.git] / application / LinkDB.php
index 1e16fef179fefa843ef7f10eb62d3471e593928c..463aa47ef5ef10ecac945206c77e9de48e823e8b 100644 (file)
@@ -269,8 +269,10 @@ You use the community supported version of the original Shaarli project, by Seba
 
     /**
      * Saves the database from memory to disk
+     *
+     * @param string $pageCacheDir page cache directory
      */
-    public function savedb()
+    public function savedb($pageCacheDir)
     {
         if (!$this->_loggedIn) {
             // TODO: raise an Exception instead
@@ -280,7 +282,7 @@ You use the community supported version of the original Shaarli project, by Seba
             $this->_datastore,
             self::$phpPrefix.base64_encode(gzdeflate(serialize($this->_links))).self::$phpSuffix
         );
-        invalidateCaches();
+        invalidateCaches($pageCacheDir);
     }
 
     /**
@@ -439,4 +441,3 @@ You use the community supported version of the original Shaarli project, by Seba
         return $linkDays;
     }
 }
-?>