cache deletion bug fix
This commit is contained in:
parent
7e95f529a6
commit
8e0457a307
1 changed files with 2 additions and 3 deletions
|
@ -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)
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue