Automattic / Automattic/wp-super-cache

Enhancement: Delete Cache button

Open
#990 0 comments 0 reactions 0 assignees View on GitHub
[Plugin] Super Cache enhancement
Dominant language
PHP
Stars
436
Forks
130
Avg merge
15h 11m
Merged PRs (30d)
10

Description

### Impacted plugin

Super Cache

### What

Improve context function and wording of Delete Cache button

### How

Hello, thanks for a great plugin.

The Delete Cache button would be much more helpful if, like on the front-end, it worked in the context of Pages and Posts in the back-end please.

For example, if I look at a Page on the front-end, hover my mouse over the Delete Cache button, I can see it will only delete the cache for that page - that's quite handy because it's often not necessary to delete the entire cache which seems to be the button's function in all other cases.

Front-end `path=/page-slug/`
![image](https://github.com/Automattic/wp-super-cache/assets/11518707/923d9144-8b1a-4b62-8842-a160ea970741)

Back-end of same page, `path=/`
![image](https://github.com/Automattic/wp-super-cache/assets/11518707/a471e2e1-0092-4d0b-b5e8-14779af5837b)

Would much like to see a drop-down with two options pleas:
- Delete entire cache
- Delete the cache of this page/post

It looks like there will need to be a special case made for the home page, since `path=/` seems to mean deleting the whole cache?

Contributor guide

No contributing guide indexed for this repository

Research direction

No file or test is named. Start by locating the Super Cache back-end Delete Cache button and comparing it with the front-end context behavior; verify separate whole-cache and page/post-cache actions, including the special case where the home-page path is `/`.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, wordpress
Domain
backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.