X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;ds=sidebyside;f=application%2Flegacy%2FLegacyLinkDB.php;h=5c02a21b48a69222bee6a3543f36f918b95b402e;hb=d9d71b10c3bc70a0881d630b37dc4e918c9e812f;hp=7ccf5e54a9c4cb9dfb70974a99197a545ef2c92a;hpb=3fb29fdda04ca86e04422d49b86cf646d53c4f9d;p=github%2Fshaarli%2FShaarli.git diff --git a/application/legacy/LegacyLinkDB.php b/application/legacy/LegacyLinkDB.php index 7ccf5e54..5c02a21b 100644 --- a/application/legacy/LegacyLinkDB.php +++ b/application/legacy/LegacyLinkDB.php @@ -8,7 +8,8 @@ use DateTime; use Iterator; use Shaarli\Bookmark\Exception\BookmarkNotFoundException; use Shaarli\Exceptions\IOException; -use Shaarli\FileUtils; +use Shaarli\Helper\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, $this->loggedIn); + $pageCacheManager->invalidateCaches(); } /**