wp embed cache <command>

Finds, triggers, and deletes oEmbed caches.

In this article

Examples

# Find cache post ID for a given URL.
$ wp embed cache find https://www.youtube.com/watch?v=dQw4w9WgXcQ --width=500
123

# Clear cache for a post.
$ wp embed cache clear 123
Success: Cleared oEmbed cache.

# Triggers cache for a post.
$ wp embed cache trigger 456
Success: Caching triggered!

Subcommands

NameDescription
wp embed cache clear

Deletes all oEmbed caches for a given post.

wp embed cache find

Finds an oEmbed cache post ID for a given URL.

wp embed cache trigger

Triggers the caching of all oEmbed results for a given post.

Command documentation is regenerated at every release. To add or update an example, please submit a pull request against the corresponding part of the codebase.