Repository navigation
Commit ae6bbcf
committed
Always clear the object cache after each chunk of comments and users
wp-cli/wp-cli#6426 makes the formatter read the requested fields of each
item while it is current, also when it can't stream them. User meta and
the post fields of comments are therefore read before the cache of their
chunk is cleared, so the cache no longer needs to be kept for them.
The posts of each chunk of comments are now loaded in one query, so that
fields like post_title don't load each post again in every chunk.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01D26yjkN2BiqCXT6p6o1WqS1 parent e40ba44 commit ae6bbcf
2 files changed
Lines changed: 18 additions & 42 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
524 | 524 | | |
525 | 525 | | |
526 | 526 | | |
527 | | - | |
528 | | - | |
| 527 | + | |
529 | 528 | | |
530 | 529 | | |
531 | 530 | | |
| |||
574 | 573 | | |
575 | 574 | | |
576 | 575 | | |
577 | | - | |
578 | | - | |
579 | | - | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
580 | 579 | | |
581 | 580 | | |
582 | | - | |
| 581 | + | |
583 | 582 | | |
584 | 583 | | |
585 | | - | |
586 | | - | |
587 | | - | |
588 | | - | |
589 | | - | |
590 | | - | |
591 | | - | |
592 | | - | |
593 | | - | |
| 584 | + | |
594 | 585 | | |
595 | 586 | | |
596 | 587 | | |
| |||
616 | 607 | | |
617 | 608 | | |
618 | 609 | | |
| 610 | + | |
| 611 | + | |
619 | 612 | | |
620 | 613 | | |
621 | 614 | | |
| |||
641 | 634 | | |
642 | 635 | | |
643 | 636 | | |
644 | | - | |
645 | | - | |
646 | | - | |
| 637 | + | |
647 | 638 | | |
648 | 639 | | |
649 | 640 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
180 | | - | |
181 | | - | |
| 180 | + | |
| 181 | + | |
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
192 | | - | |
193 | | - | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
194 | 195 | | |
195 | | - | |
196 | | - | |
| 196 | + | |
| 197 | + | |
197 | 198 | | |
198 | 199 | | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
| 200 | + | |
214 | 201 | | |
215 | 202 | | |
216 | 203 | | |
| |||
244 | 231 | | |
245 | 232 | | |
246 | 233 | | |
247 | | - | |
248 | | - | |
249 | | - | |
| 234 | + | |
250 | 235 | | |
251 | 236 | | |
252 | 237 | | |
| |||
0 commit comments