IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
diff --git a/wp-includes/functions.php b/wp-includes/functions.php
a
|
b
|
|
8582 | 8582 | |
8583 | 8583 | // Only write the transient on the top level call and not on recursive calls. |
8584 | 8584 | if ( $save_cache ) { |
8585 | | set_transient( 'dirsize_cache', $directory_cache ); |
| 8585 | $expiration = ( wp_using_ext_object_cache() || wp_installing() ) ? 0 : 10 * YEAR_IN_SECONDS; |
| 8586 | set_transient( 'dirsize_cache', $directory_cache, $expiration ); |
8586 | 8587 | } |
8587 | 8588 | |
8588 | 8589 | return $size; |
… |
… |
|
8612 | 8613 | } |
8613 | 8614 | |
8614 | 8615 | $directory_cache = get_transient( 'dirsize_cache' ); |
| 8616 | $expiration = ( wp_using_ext_object_cache() || wp_installing() ) ? 0 : 10 * YEAR_IN_SECONDS; |
8615 | 8617 | |
8616 | 8618 | if ( empty( $directory_cache ) ) { |
8617 | 8619 | return; |
… |
… |
|
8622 | 8624 | ! str_contains( $path, '\\' ) |
8623 | 8625 | ) { |
8624 | 8626 | unset( $directory_cache[ $path ] ); |
8625 | | set_transient( 'dirsize_cache', $directory_cache ); |
| 8627 | set_transient( 'dirsize_cache', $directory_cache, $expiration ); |
8626 | 8628 | return; |
8627 | 8629 | } |
8628 | 8630 | |
… |
… |
|
8641 | 8643 | unset( $directory_cache[ $path ] ); |
8642 | 8644 | } |
8643 | 8645 | |
8644 | | set_transient( 'dirsize_cache', $directory_cache ); |
| 8646 | set_transient( 'dirsize_cache', $directory_cache, $expiration ); |
8645 | 8647 | } |
8646 | 8648 | |
8647 | 8649 | /** |