clean_attachment_cache( int $id, bool $clean_terms = false )

Will clean the attachment in the cache.


25 related functions found for: clean_attachment_cache

Top ↑

Related terms found for this post

TaxonomyTerms
wp-parser-related-wordsattach, attachment, attachments, cach, cache, clean, post-php, post-typ, post-type, wp-includes
wp-parser-packagePost, WordPress
wp-parser-source-filewp-includes/post.php

Top ↑

Terms Used Terms Used

Terms used in the related posts query

  • attach
  • attachment
  • attachments
  • cach
  • cache
  • clean
  • Post
  • post-php
  • post-typ
  • post-type
  • wp-includes
  • wp-includes/post.php
  • post

Top ↑

Description Description

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.


Top ↑

Parameters Parameters

$id

(int) (Required) The attachment ID in the cache to clean.

$clean_terms

(bool) (Optional) Whether to clean terms cache.

Default value: false


Top ↑

Source Source

File: wp-includes/post.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.