Changeset 57831 for trunk/src/wp-includes/class-wp-textdomain-registry.php
- Timestamp:
- 03/14/2024 09:04:00 AM (11 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-textdomain-registry.php
r57639 r57831 184 184 } 185 185 186 $cache_key = 'cached_mo_files_' .md5( $path );187 $files = wp_cache_get( $cache_key, 'translation s' );186 $cache_key = md5( $path ); 187 $files = wp_cache_get( $cache_key, 'translation_files' ); 188 188 189 189 if ( false === $files ) { … … 198 198 } 199 199 200 wp_cache_set( $cache_key, $files, 'translation s');200 wp_cache_set( $cache_key, $files, 'translation_files', HOUR_IN_SECONDS ); 201 201 } 202 202 … … 247 247 switch ( $type ) { 248 248 case 'plugin': 249 wp_cache_delete( 'cached_mo_files_' . md5( WP_LANG_DIR . '/plugins/' ), 'translations' );249 wp_cache_delete( md5( WP_LANG_DIR . '/plugins/' ), 'translation_files' ); 250 250 break; 251 251 case 'theme': 252 wp_cache_delete( 'cached_mo_files_' . md5( WP_LANG_DIR . '/themes/' ), 'translations' );252 wp_cache_delete( md5( WP_LANG_DIR . '/themes/' ), 'translation_files' ); 253 253 break; 254 254 default: 255 wp_cache_delete( 'cached_mo_files_' . md5( WP_LANG_DIR . '/' ), 'translations' );255 wp_cache_delete( md5( WP_LANG_DIR . '/' ), 'translation_files' ); 256 256 break; 257 257 }
Note: See TracChangeset
for help on using the changeset viewer.