Add UI to invalidate cache for individual images directly from WordPress
维护者通常 1 天内回复
评估
调研方向
首先跟踪现有的 WordPress 仪表盘缓存控制项以及 POST /api/optml/v2/cache/invalidate/asset 端点。确定如何通过 Media Library 操作或 Optimole 设置输入,使用站点的 API 凭据通过 API 提交选定的图像 URL。目标失效操作能够正常工作,并且管理员收到清晰的成功或失败通知,即表示完成。
由索引模型根据 Issue 内容生成。
描述
Problem
Currently, when a user wants to clear the cache for a specific updated image from the WordPress dashboard, their only option is to regenerate the entire Optimole image cache. Flushing the entire cache for a single image update is highly inefficient and disruptive for high-traffic sites. While there is an API available to invalidate specific assets, it is inaccessible to non-technical WP admins.
Desired Behavior
Provide a setting or action within the WordPress dashboard to dump the cache for a single image or a small selection of images. This could be exposed as a bulk action/row action in the native WP Media Library or an input field in the Optimole settings where an admin can paste specific URLs to clear.
Acceptance Criteria
- Provide a UI control within the WordPress admin (e.g., in Media Library and/or Optimole settings) to trigger cache invalidation for specific images.
- The action securely triggers the existing
POST /api/optml/v2/cache/invalidate/assetbackend endpoint using the site's API credentials. - An admin notice clearly confirms whether the single-image cache was successfully refreshed or if it failed.
Customer Context
An agency partner managing high-traffic sites requests a targeted way to clear cache for individual images via the WordPress backend. Regenerating the entire cache is too heavy-handed, and their team cannot easily use the Optimole REST API.
- 主要语言
- PHP
- 星标
- 73
- 派生
- 14
- 平均合并
- 2 天 13 小时
- 30 天内合并 PR
- 16
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
Codeinwp/optimole-wp 的其他 Issue
-
bug-report bug-report-triage crash-report
难度 4/5 3-5 天 新手友好度 65/100
Codeinwp/optimole-wp#1162 ·
维护者通常 1 天内回复
-
customer report feature-request-triage
难度 3/5 1-2 天 新手友好度 65/100
Codeinwp/optimole-wp#1161 ·
维护者通常 1 天内回复
-
bug-report bug-report-triage customer report regression
难度 4/5 3-5 天 新手友好度 56/100
Codeinwp/optimole-wp#1159 ·
维护者通常 1 天内回复
-
customer report feature-request-triage
难度 3/5 1-2 天 新手友好度 55/100
Codeinwp/optimole-wp#1151 ·
维护者通常 1 天内回复
-
bug-report bug-report-triage crash-report
难度 4/5 3-5 天 新手友好度 55/100
Codeinwp/optimole-wp#1139 ·
维护者通常 1 天内回复
查看 Codeinwp/optimole-wp 的全部 Issue
相似的 Issue
-
Toolkit
难度 2/5 1-3 小时 新手友好度 88/100
维护者通常 1 天内回复
-
[Bug] v-quick-install-app install crashes with ValueError if no supported PHP version is installed未关闭
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 88/100
langgenius/dify#43074 · 1 条评论 · 1 个 reaction ·
维护者通常 1 天内回复
-
module: remove unused css
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 72/100
backdrop-contrib/field_group#99 · 2 条评论 ·