[wp-trac] [WordPress Trac] #56040: Port Persistent Object Cache Health Check from performance plugin to core

WordPress Trac noreply at wordpress.org
Mon Aug 29 16:52:28 UTC 2022


#56040: Port Persistent Object Cache Health Check from performance plugin to core
--------------------------------------+--------------------------
 Reporter:  furi3r                    |       Owner:  furi3r
     Type:  enhancement               |      Status:  closed
 Priority:  normal                    |   Milestone:  6.1
Component:  Site Health               |     Version:
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |     Focuses:  performance
--------------------------------------+--------------------------
Changes (by flixos90):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"53955" 53955]:
 {{{
 #!CommitTicketReference repository="" revision="53955"
 Site Health: Introduce persistent object cache check.

 This changeset adds a new `persistent_object_cache` check which determines
 whether the site uses a persistent object cache, and if not, recommends it
 if it is beneficial for the site. A support resource to learn more about
 object caching has been created and is linked in the check.

 A few filters are included for customization of the check, aimed primarily
 at hosting providers to provide more specific information in regards to
 their environment:

 * `site_status_persistent_object_cache_url` filters the URL to learn more
 about object caching, so that e.g. a hosting-specific object caching
 support resource could be linked.
 * `site_status_persistent_object_cache_notes` filters the notes added to
 the check description, so that more fine tuned information on object
 caching based on the environment can be provided.
 * `site_status_should_suggest_persistent_object_cache` is a short-circuit
 filter which allows using entirely custom logic to determine whether a
 persistent object cache would make sense for the site.
 * `site_status_persistent_object_cache_thresholds` filters the thresholds
 in the default logic to determine whether a persistent object cache would
 make sense for the site, which is based on the amount of data in the
 database.

 Note that due to the nature of this check it is only run in production
 environments.

 Props furi3r, tillkruss, spacedmonkey, audrasjb, Clorith.
 Fixes #56040.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/56040#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list