[wp-trac] [WordPress Trac] #60120: Add cache group to block pattern cache

WordPress Trac noreply at wordpress.org
Wed Dec 20 10:10:52 UTC 2023


#60120: Add cache group to block pattern cache
--------------------------+----------------------------
 Reporter:  spacedmonkey  |      Owner:  (none)
     Type:  enhancement   |     Status:  new
 Priority:  normal        |  Milestone:  Future Release
Component:  Themes        |    Version:  6.4
 Severity:  normal        |   Keywords:
  Focuses:  performance   |
--------------------------+----------------------------
 In [56978] block patterns were cache in object cache. However, no cache
 group was provided. Example.


 {{{#!php
         private function get_pattern_cache() {
             if ( ! $this->exists() ) {
                return false;
             }
             $pattern_data = wp_cache_get( 'wp_theme_patterns_' .
 $this->stylesheet );

 }}}


 This makes it hard to control this cache. A cache group should be provided
 to bring inline with other caches.

 Question: should this cache group be a global cache group.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/60120>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list