clean_attachment_cache
clean_attachment_cache ( $id, $clean_terms = false )
Parameters:- (int) id The attachment ID in the cache to clean.
- (bool) clean_terms Optional. Whether to clean terms cache. Default false.
Defined at: - Introduced in WordPress: 3.0.0
- Deprecated in WordPress: —
Description
Will clean the attachment in the cache.Cleaning means delete from the cache. Optionally will clean the term
object cache associated with the attachment ID.
This function will not run if $_wp_suspend_cache_invalidation is not empty.