Function Signature:
clean_dirsize_cache
Function Description:
Cleans directory size cache used by recurse_dirsize().
Function Examples:
⚠️ Examples below are generated with GPT-3 once every hour. Do not take them too seriously.
Consider them as some extra input in your learning process - reason about them. Will it work? What could fail?
// Example 1: Clean the directory size cache for a specific WordPress site
clean_dirsize_cache( get_current_blog_id() );
// Example 2: Clean the directory size cache for all WordPress sites in a multisite network
foreach ( get_sites() as $site ) {
switch_to_blog( $site->blog_id );
clean_dirsize_cache();
restore_current_blog();
}
// Example 3: Clean the directory size cache and update the size of a specific directory
$directory_path = '/path/to/directory';
clean_dirsize_cache( 0, $directory_path );