Skip to content

Commit 13a0af1

Browse files
authored
Fix invalid useCache() example (#10359)
1 parent 16bb3a1 commit 13a0af1

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

scheduling.md

+1-4
Original file line numberDiff line numberDiff line change
@@ -365,10 +365,7 @@ Schedule::command('report:generate')
365365
You may use the `useCache` method to customize the cache store used by the scheduler to obtain the atomic locks necessary for single-server tasks:
366366

367367
```php
368-
Schedule::command('recipes:sync')
369-
->everyThirtyMinutes()
370-
->onOneServer();
371-
->useCache('database');
368+
Schedule::useCache('database');
372369
```
373370

374371
<a name="naming-unique-jobs"></a>

0 commit comments

Comments
 (0)