Make WordPress Core

Changes between Initial Version and Version 2 of Ticket #66098


Ignore:
Timestamp:
09/13/2026 05:12:04 PM (2 months ago)
Author:
jdeep
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #66098 – Description

    initial v2  
    55For 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.
    66
    7 In our case, we run the aggregate in the background using Action Scheduler and store
     7We can run the aggregate in the background using Action Scheduler and store
    88the result in a durable store (an option). But to make `wp_count_posts()` actually
    99return 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