Skip to content

Commit

Permalink
Temp: Artificially wait 5 seconds before revalidating assets
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesedmonston committed Oct 6, 2023
1 parent 64ec221 commit efb22b6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/jobs/RevalidateAssetJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ public function execute($queue): void

if (empty($doKey)) return;

sleep(5);

$client = Craft::createGuzzleClient();
$assets = Asset::find()->id($this->assetIds)->all();

Expand Down

0 comments on commit efb22b6

Please sign in to comment.