Skip to content

Commit

Permalink
[4.x] Fix queue worker state issue around assets (#9690)
Browse files Browse the repository at this point in the history
  • Loading branch information
aerni committed May 8, 2024
1 parent 22b9e16 commit d59b993
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Assets/AssetContainerContents.php
Expand Up @@ -294,7 +294,11 @@ public function add($path)
$this->add($dir);
}

$this->all()->put($path, $metadata);
$files = $this->all()->put($path, $metadata);

if (Statamic::isWorker()) {
Cache::put($this->key(), $files, $this->ttl());
}

$this->filteredFiles = null;
$this->filteredDirectories = null;
Expand Down

0 comments on commit d59b993

Please sign in to comment.