-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Improved caching. #3624
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improved caching. #3624
Changes from all commits
d09a712
202ee64
18c0ca9
db09bba
b566dcc
8e2af75
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -346,13 +346,15 @@ | |
| add_action( 'init', '_register_core_block_patterns_and_categories' ); | ||
| add_action( 'init', 'check_theme_switched', 99 ); | ||
| add_action( 'init', array( 'WP_Block_Supports', 'init' ), 22 ); | ||
| add_action( 'switch_theme', array( 'WP_Theme_JSON_Resolver', 'clean_cached_data' ) ); | ||
| add_action( 'start_previewing_theme', array( 'WP_Theme_JSON_Resolver', 'clean_cached_data' ) ); | ||
| add_action( 'after_switch_theme', '_wp_menus_changed' ); | ||
| add_action( 'after_switch_theme', '_wp_sidebars_changed' ); | ||
| add_action( 'wp_print_styles', 'print_emoji_styles' ); | ||
| add_action( 'plugins_loaded', '_wp_theme_json_webfonts_handler' ); | ||
|
|
||
| foreach ( array( 'switch_theme', 'start_previewing_theme', 'add_theme_support', 'remove_theme_support' ) as $action ) { | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think the However, invalidating the cache on Addressing this problem is not easy, which is why we need to IMO take some more time to think about the best way to address it. The root problem is that data that is cached preferably shouldn't depend on |
||
| add_action( $action, array( 'WP_Theme_JSON_Resolver', 'clean_cached_data' ) ); | ||
| } | ||
|
|
||
| if ( isset( $_GET['replytocom'] ) ) { | ||
| add_filter( 'wp_robots', 'wp_robots_no_robots' ); | ||
| } | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.