Add UI to invalidate cache for individual images directly from WordPress
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 35/100
Rechercherichtung
Beginne damit, die vorhandenen Cache-Steuerungen im WordPress-Dashboard und den Endpunkt POST /api/optml/v2/cache/invalidate/asset nachzuverfolgen. Ermittle, wie eine Aktion in der Media Library oder eine Eingabe in den Optimole-Einstellungen ausgewählte Bild-URLs unter Verwendung der API-Zugangsdaten der Website über die API übermitteln kann. Als erledigt gilt die Aufgabe, wenn die gezielte Invalidierung funktioniert und der Administrator eine klare Erfolgs- oder Fehlermeldung erhält.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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.
- Vorherrschende Sprache
- PHP
- Sterne
- 73
- Forks
- 14
- Ø Merge
- 2 T. 13 Std.
- Gemergte PRs (30 T.)
- 16
Entwicklungsumgebung
- Enthält ein Dockerfile oder eine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus Codeinwp/optimole-wp
-
bug-report bug-report-triage crash-report
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 65/100
Codeinwp/optimole-wp#1162 ·
Maintainer antworten meist innerhalb von 1 Tag
-
customer report feature-request-triage
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 65/100
Codeinwp/optimole-wp#1161 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug-report bug-report-triage customer report regression
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 56/100
Codeinwp/optimole-wp#1159 ·
Maintainer antworten meist innerhalb von 1 Tag
-
customer report feature-request-triage
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 55/100
Codeinwp/optimole-wp#1151 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug-report bug-report-triage crash-report
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 55/100
Codeinwp/optimole-wp#1139 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in Codeinwp/optimole-wp
Ähnliche Issues
-
domain/crm-after-sales Platform(Default) priority/high
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
Maintainer antworten meist innerhalb von 1 Tag
-
sync-en
Schwierigkeit 1/5 1-3 Stunden Anfängerfreundlichkeit 86/100
Maintainer antworten meist innerhalb von 2 Tagen
-
sync-en
Schwierigkeit 1/5 1-3 Stunden Anfängerfreundlichkeit 88/100
Maintainer antworten meist innerhalb von 2 Tagen
-
Перевод устарел
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
Maintainer antworten meist innerhalb von 1 Tag
-
component/code document/settings documents duplicate integration/wc/pages/cart integration/woocommerce mod* mod/b* mod/c* mod/d* mod/e* mod/i* product/pro status/needs-feedback
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
elementor/elementor#37475 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag