Making WordPress.org

Changeset 12323

Timestamp:
12/14/2022 01:54:24 AM (3 years ago)
Author:
dd32
Message:

Mu-plugins: Add a plugin to cache wp_count_posts() on the front-end.

WordPress.org themes often call wp_count_posts() to get the published post count, for example, the WordPress.org Plugins & Theme directories, and the WordPress.org Showcase.

This mu-plugin pre-sets the 'counts' cache group (which is a non-persistent cache group) on the front-end using wp_cache_get_last_changed() to invalidate it.

This removes often the final non-cached SQL query on these sites.

File:
1 added

Note: See TracChangeset for help on using the changeset viewer.