WPDev.one
Core Function
View Source on Trac ↗

clean_attachment_cache()

clean_attachment_cache( mixed $id, mixed $clean_terms = false )

Will clean the attachment in the cache.

Parameters 1 required

Name / Type Description
$id
int

The attachment ID in the cache to clean.

Required
$clean_terms
bool

Optional. Whether to clean terms cache. Default false.

Return Value

(void)
No return value description available.

Function Information

Since Version
3.0.0
Source File
wp-includes/post.php
Advertisement