Changeset 56522
- Timestamp:
- 09/06/2023 10:01:39 AM (14 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/functions.php
r56514 r56522 8601 8601 // Only write the transient on the top level call and not on recursive calls. 8602 8602 if ( $save_cache ) { 8603 set_transient( 'dirsize_cache', $directory_cache ); 8603 $expiration = ( wp_using_ext_object_cache() ) ? 0 : 10 * YEAR_IN_SECONDS; 8604 set_transient( 'dirsize_cache', $directory_cache, $expiration ); 8604 8605 } 8605 8606 … … 8636 8637 } 8637 8638 8639 $expiration = ( wp_using_ext_object_cache() ) ? 0 : 10 * YEAR_IN_SECONDS; 8638 8640 if ( 8639 8641 ! str_contains( $path, '/' ) && … … 8641 8643 ) { 8642 8644 unset( $directory_cache[ $path ] ); 8643 set_transient( 'dirsize_cache', $directory_cache );8645 set_transient( 'dirsize_cache', $directory_cache, $expiration ); 8644 8646 return; 8645 8647 } … … 8660 8662 } 8661 8663 8662 set_transient( 'dirsize_cache', $directory_cache );8664 set_transient( 'dirsize_cache', $directory_cache, $expiration ); 8663 8665 } 8664 8666
Note: See TracChangeset
for help on using the changeset viewer.