Skip to content

Commit

Permalink
Add delay to the search update task.
Browse files Browse the repository at this point in the history
  • Loading branch information
ivopetkov committed Dec 26, 2021
1 parent 1ebc8f3 commit 4bdc22e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions classes/Utilities.php
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,7 @@ static function addIndexUpdateTask(): void
$app = App::get();
$app->tasks->add('bearcms-search-update-index', null, [
'id' => 'bearcms-search-update-index',
'startTime' => (time() + 5 * 60),
'ignoreIfExists' => true
]);
}
Expand Down

0 comments on commit 4bdc22e

Please sign in to comment.