Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/en/console-commands/counter-cache.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ 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.
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
Expand Down