Changeset 52767
- Timestamp:
- 02/17/2022 07:51:30 PM (3 years ago)
- Location:
- branches/5.9
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.9
-
branches/5.9/src/wp-includes/option.php
r52035 r52767 785 785 do_action( "delete_transient_{$transient}", $transient ); 786 786 787 if ( wp_using_ext_object_cache() ) {787 if ( wp_using_ext_object_cache() || wp_installing() ) { 788 788 $result = wp_cache_delete( $transient, 'transient' ); 789 789 } else { … … 847 847 } 848 848 849 if ( wp_using_ext_object_cache() ) {849 if ( wp_using_ext_object_cache() || wp_installing() ) { 850 850 $value = wp_cache_get( $transient, 'transient' ); 851 851 } else { … … 931 931 $expiration = apply_filters( "expiration_of_transient_{$transient}", $expiration, $value, $transient ); 932 932 933 if ( wp_using_ext_object_cache() ) {933 if ( wp_using_ext_object_cache() || wp_installing() ) { 934 934 $result = wp_cache_set( $transient, $value, 'transient', $expiration ); 935 935 } else { … … 1859 1859 do_action( "delete_site_transient_{$transient}", $transient ); 1860 1860 1861 if ( wp_using_ext_object_cache() ) {1861 if ( wp_using_ext_object_cache() || wp_installing() ) { 1862 1862 $result = wp_cache_delete( $transient, 'site-transient' ); 1863 1863 } else { … … 1923 1923 } 1924 1924 1925 if ( wp_using_ext_object_cache() ) {1925 if ( wp_using_ext_object_cache() || wp_installing() ) { 1926 1926 $value = wp_cache_get( $transient, 'site-transient' ); 1927 1927 } else { … … 2004 2004 $expiration = apply_filters( "expiration_of_site_transient_{$transient}", $expiration, $value, $transient ); 2005 2005 2006 if ( wp_using_ext_object_cache() ) {2006 if ( wp_using_ext_object_cache() || wp_installing() ) { 2007 2007 $result = wp_cache_set( $transient, $value, 'site-transient', $expiration ); 2008 2008 } else {
Note: See TracChangeset
for help on using the changeset viewer.