diff --git a/docs/en/console-commands/counter-cache.md b/docs/en/console-commands/counter-cache.md index ad3eab7f80..d94557d0de 100644 --- a/docs/en/console-commands/counter-cache.md +++ b/docs/en/console-commands/counter-cache.md @@ -6,7 +6,7 @@ recovery operations, or to populate new counter caches added to your application. ``` bash -bin/cake counter_cache --assoc Comments Articles +bin/cake counter_cache Comments --assoc Articles ``` This would rebuild the `Comments` related counters on the `Articles` table. @@ -14,7 +14,7 @@ For very large tables you may need to rebuild counters in batches. You can use the `--limit` and `--page` options to incrementally rebuild counter state. ``` bash -bin/cake counter_cache --assoc Comments --limit 100 --page 2 Articles +bin/cake counter_cache Comments --assoc Articles --limit 100 --page 2 ``` When `limit` and `page` are used, records will be ordered by the table's