1
0
Fork 0
mirror of synced 2024-09-28 07:21:35 +12:00
This commit is contained in:
shimon 2022-07-24 10:12:15 +03:00
parent 64050337cf
commit 509057f84c

View file

@ -143,13 +143,11 @@ class DeletesV1 extends Worker
);
$this->deleteByGroup(
'cache', [
new Query('accessedAt', Query::TYPE_LESSER, [$timestamp])
],
'cache',
[new Query('accessedAt', Query::TYPE_LESSER, [$timestamp])],
$dbForProject,
function (Document $document) use ($cache, $projectId) {
$path = APP_STORAGE_CACHE . DIRECTORY_SEPARATOR . 'app-' . $projectId . DIRECTORY_SEPARATOR . $document->getId();
$path = APP_STORAGE_CACHE . DIRECTORY_SEPARATOR . 'app-' . $projectId . DIRECTORY_SEPARATOR . $document->getId();
if ($cache->purge($document->getId())) {
Console::success('Deleting cache file: ' . $path);