Make WordPress Core


Ignore:
Timestamp:
01/26/2023 11:01:10 PM (22 months ago)
Author:
flixos90
Message:

Editor: Use a non-persistent object cache instead of transient in wp_get_global_stylesheet().

This changeset is part of a greater effort to enhance the caching strategy for theme.json based data. Similar to [55138], the cache is currently ignored when WP_DEBUG is on to avoid interrupting the theme developer's workflow.

Props oandregal, spacedmonkey, hellofromtonya, flixos90, ironprogrammer, azaozz, aristath, costdev, mcsf.
Fixes #56910.

File:
1 edited

Legend:

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

    r55123 r55148  
    576576            }
    577577
    578             wp_cache_add_non_persistent_groups( array( 'counts', 'plugins' ) );
     578            wp_cache_add_non_persistent_groups( array( 'counts', 'plugins', 'theme_json' ) );
    579579        }
    580580    }
     
    667667            }
    668668
    669             wp_cache_add_non_persistent_groups( array( 'counts', 'plugins' ) );
     669            wp_cache_add_non_persistent_groups( array( 'counts', 'plugins', 'theme_json' ) );
    670670        }
    671671    }
Note: See TracChangeset for help on using the changeset viewer.