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
|
|
8478 | 8478 | |
8479 | 8479 | // Only write the transient on the top level call and not on recursive calls. |
8480 | 8480 | if ( $save_cache ) { |
8481 | | set_transient( 'dirsize_cache', $directory_cache ); |
| 8481 | $expiration = ( wp_using_ext_object_cache() ) ? 0 : 10 * YEAR_IN_SECONDS; |
| 8482 | set_transient( 'dirsize_cache', $directory_cache, $expiration ); |
8482 | 8483 | } |
8483 | 8484 | |
8484 | 8485 | return $size; |
… |
… |
|
8513 | 8514 | return; |
8514 | 8515 | } |
8515 | 8516 | |
| 8517 | $expiration = ( wp_using_ext_object_cache() ) ? 0 : 10 * YEAR_IN_SECONDS; |
8516 | 8518 | if ( |
8517 | 8519 | ! str_contains( $path, '/' ) && |
8518 | 8520 | ! str_contains( $path, '\\' ) |
8519 | 8521 | ) { |
8520 | 8522 | unset( $directory_cache[ $path ] ); |
8521 | | set_transient( 'dirsize_cache', $directory_cache ); |
| 8523 | set_transient( 'dirsize_cache', $directory_cache, $expiration ); |
8522 | 8524 | return; |
8523 | 8525 | } |
8524 | 8526 | |
… |
… |
|
8537 | 8539 | unset( $directory_cache[ $path ] ); |
8538 | 8540 | } |
8539 | 8541 | |
8540 | | set_transient( 'dirsize_cache', $directory_cache ); |
| 8542 | set_transient( 'dirsize_cache', $directory_cache, $expiration ); |
8541 | 8543 | } |
8542 | 8544 | |
8543 | 8545 | /** |