Make WordPress Core


Ignore:
Timestamp:
03/10/2023 04:27:23 PM (19 months ago)
Author:
spacedmonkey
Message:

Cache API: Introduce new queries cache groups.

Give developers more control over how query caches are handled within an object caches. Now all caches that cache the result of a query, are cached in a group that is suffixed with -queries. Developers can use these groups, to add custom cache invalidation rules or to make them none persistent.

Props spacedmonkey, owi, tillkruess, skithund, peterwilsoncc, flixos90, sergeybiryukov, mukesh27.
Fixes #57625.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/ms-site.php

    r54947 r55526  
    989989    do_action( 'clean_site_cache', $blog_id, $blog, $domain_path_key );
    990990
    991     wp_cache_set( 'last_changed', microtime(), 'sites' );
     991    wp_cache_set_sites_last_changed();
    992992
    993993    /**
Note: See TracChangeset for help on using the changeset viewer.