Make WordPress Core


Ignore:
Timestamp:
03/10/2023 04:27:23 PM (4 years 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/comment.php

    r55424 r55526  
    32943294        }
    32953295
    3296         wp_cache_set( 'last_changed', microtime(), 'comment' );
     3296        wp_cache_set_comments_last_changed();
    32973297}
    32983298
Note: See TracChangeset for help on using the changeset viewer.