Automattic / Automattic/wp-super-cache
Updated scheduled posts doesn't clear the cache of the preview
- Dominant language
- PHP
- Stars
- 436
- Forks
- 130
- Avg merge
- 15h 11m
- Merged PRs (30d)
- 10
Description
This might be a Gutenberg issue. I need to test it with the classic editor too. After updating a scheduled post, clicking on "Schedule post" doesn't delete any cache files because the post is in the future. Meaning the "View post" link (?p=xxxx) doesn't update. The "Preview" button does however work.
> /wp-json/wp/v2/posts/89502030 wp_cache_post_edit: draft post, not deleting any cache files. status: future
> /wp-json/wp/v2/posts/89502030 wp_cache_post_change: draft post, not deleting any cache files.
This can be solved by not caching for known users or not caching pages with GET parameters.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the scheduled-post update through the Gutenberg editor, then compare it with the classic editor as suggested. Inspect the wp_cache_post_edit and wp_cache_post_change behavior shown in the REST API output; done means updating a future post invalidates the relevant cache so the View post link reflects the change.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend, performance
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100