Skip to content

Commit

Permalink
docs: added documentation on queued jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
tiller1010 committed Jun 23, 2023
1 parent a9019ee commit c559dc6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/en/remove_search_queries_job.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# Remove Search Queries Job
The "Werkbot\Search\RemoveSearchQueriesJob" can be created in the CMS in the "Jobs" tab. The job can be executed immediately for testing, but a cron job must be setup in a live environment:
```sh
php /vendor/silverstripe/framework/cli-script.php dev/tasks/ProcessJobQueueTask
```

By default, the RemoveSearchQueriesJob removes SearchQueries that are more than a year old. This job also queues itself for tomorrow by default. This behavior can be altered in the RemoveSearchQueriesJob configuration.
```yml
Werkbot\Search\RemoveSearchQueriesJob:
Expand Down

0 comments on commit c559dc6

Please sign in to comment.