1
0
Fork 0
mirror of synced 2024-09-08 05:42:15 +12:00

cache deletion bug fix

This commit is contained in:
shimon 2023-06-13 14:53:12 +03:00
parent 7e95f529a6
commit 8e0457a307

View file

@ -168,10 +168,9 @@ class DeletesV1 extends Worker
*/
protected function deleteCacheByDate(string $datetime): void
{
$this->deleteForProjectIds(function (Document $project) use ($datetime) {
$this->deleteForProjectIds(function (string $projectId) use ($datetime) {
$projectId = $project->getId();
$dbForProject = $this->getProjectDB($project);
$dbForProject = $this->getProjectDB($projectId);
$cache = new Cache(
new Filesystem(APP_STORAGE_CACHE . DIRECTORY_SEPARATOR . 'app-' . $projectId)
);