Migrate cache purge function to a proper class
And update dependencies and tests. Note that SESSION['tags'] has been removed a log ago
This commit is contained in:
parent
485b168a96
commit
b0428aa9b0
9 changed files with 76 additions and 68 deletions
application/legacy
|
@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue