mirror of
https://gh.wpcy.net/https://github.com/wp-cli/handbook.git
synced 2026-05-04 21:24:28 +08:00
19 lines
407 B
Markdown
19 lines
407 B
Markdown
# wp embed cache
|
|
|
|
Finds, triggers, and deletes oEmbed caches.
|
|
|
|
### 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!
|
|
|
|
|