Add wp theme cache command

Open
#392 9 comments 1 reaction 2 assignees View on GitHub

@swissspidy is already working on this.

Since Feb 2, 2026.

Assessment

This issue has not been assessed yet.

Description

command:theme state:unconfirmed

Feature Request

Describe your use case and the problem you are facing

Add the following commands

wp theme cache <theme> get <key> 
wp theme cache <theme> add <key> <data>
wp theme cache <theme> delete

Describe the solution you'd like

Add command would map to the method cache_add on WP_Theme class.
Get command would map to the method cache_get on WP_Theme class.
Delete command would map to the method cache_delete on WP_Theme class.

This would help manage and clear theme related caches.

Dominant language
Gherkin
Stars
90
Forks
88
Avg merge
1d 18h
Merged PRs (30d)
6

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from wp-cli/extension-command

All issues in wp-cli/extension-command

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.