1
0
Fork 0
mirror of synced 2024-09-17 01:47:57 +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 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($projectId);
$dbForProject = $this->getProjectDB($project);
$cache = new Cache( $cache = new Cache(
new Filesystem(APP_STORAGE_CACHE . DIRECTORY_SEPARATOR . 'app-' . $projectId) new Filesystem(APP_STORAGE_CACHE . DIRECTORY_SEPARATOR . 'app-' . $projectId)
); );