Changes between Initial Version and Version 2 of Ticket #66098
- Timestamp:
- 09/13/2026 05:12:04 PM (2 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #66098 – Description
initial v2 5 5 For a large publisher, an exact real-time count in the admin dashboard is not important as long as they are able to publish without the list screen taking several seconds to load. We can happily trade a little count accuracy for performance. 6 6 7 In our case, werun the aggregate in the background using Action Scheduler and store7 We can run the aggregate in the background using Action Scheduler and store 8 8 the result in a durable store (an option). But to make `wp_count_posts()` actually 9 9 return that value and skip its query, we have to fill core's object cache by hand. On every request, we `wp_cache_set()` the stored counts under the key