diff options
author | ArthurHoaro <arthur@hoa.ro> | 2020-01-23 21:13:41 +0100 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2020-07-23 21:19:21 +0200 |
commit | b0428aa9b02b058b72c40b6e8dc2298d55bf692f (patch) | |
tree | c57176b24d76836a73608fb273b1094fcb8de785 /application/legacy | |
parent | 485b168a9677d160b0c0426e4f282b9bd0c632c1 (diff) | |
download | Shaarli-b0428aa9b02b058b72c40b6e8dc2298d55bf692f.tar.gz Shaarli-b0428aa9b02b058b72c40b6e8dc2298d55bf692f.tar.zst Shaarli-b0428aa9b02b058b72c40b6e8dc2298d55bf692f.zip |
Migrate cache purge function to a proper class
And update dependencies and tests.
Note that SESSION['tags'] has been removed a log ago
Diffstat (limited to 'application/legacy')
-rw-r--r-- | application/legacy/LegacyLinkDB.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/application/legacy/LegacyLinkDB.php b/application/legacy/LegacyLinkDB.php index 7ccf5e54..947005ad 100644 --- a/application/legacy/LegacyLinkDB.php +++ b/application/legacy/LegacyLinkDB.php | |||
@@ -9,6 +9,7 @@ use Iterator; | |||
9 | use Shaarli\Bookmark\Exception\BookmarkNotFoundException; | 9 | use Shaarli\Bookmark\Exception\BookmarkNotFoundException; |
10 | use Shaarli\Exceptions\IOException; | 10 | use Shaarli\Exceptions\IOException; |
11 | use Shaarli\FileUtils; | 11 | use Shaarli\FileUtils; |
12 | use Shaarli\Render\PageCacheManager; | ||
12 | 13 | ||
13 | /** | 14 | /** |
14 | * Data storage for bookmarks. | 15 | * Data storage for bookmarks. |
@@ -352,7 +353,8 @@ You use the community supported version of the original Shaarli project, by Seba | |||
352 | 353 | ||
353 | $this->write(); | 354 | $this->write(); |
354 | 355 | ||
355 | invalidateCaches($pageCacheDir); | 356 | $pageCacheManager = new PageCacheManager($pageCacheDir); |
357 | $pageCacheManager->invalidateCaches(); | ||
356 | } | 358 | } |
357 | 359 | ||
358 | /** | 360 | /** |