]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - application/legacy/LegacyLinkDB.php
Migrate cache purge function to a proper class
[github/shaarli/Shaarli.git] / application / legacy / LegacyLinkDB.php
index 7ccf5e54a9c4cb9dfb70974a99197a545ef2c92a..947005adddb6184ce807a105ba1344f50cb4c453 100644 (file)
@@ -9,6 +9,7 @@ use Iterator;
 use Shaarli\Bookmark\Exception\BookmarkNotFoundException;
 use Shaarli\Exceptions\IOException;
 use Shaarli\FileUtils;
+use Shaarli\Render\PageCacheManager;
 
 /**
  * Data storage for bookmarks.
@@ -352,7 +353,8 @@ You use the community supported version of the original Shaarli project, by Seba
 
         $this->write();
 
-        invalidateCaches($pageCacheDir);
+        $pageCacheManager = new PageCacheManager($pageCacheDir);
+        $pageCacheManager->invalidateCaches();
     }
 
     /**