jetpack icon indicating copy to clipboard operation
jetpack copied to clipboard

WPSCFORCEUPDATE is not documented

Open htesligte opened this issue 7 years ago • 2 comments

We have a customer that changes posts frequently to private. This is because sometimes the post need to be visible again but is temporarily hidden. However, the cache is not cleared because wp-cache-phase2.php checks if $post->post_status != "publish". I noticed that there is a define 'WPSCFORCEUPDATE' that skips this check, but this isn't documented.

Can I use this define safely to clear cache in this case?

htesligte avatar Sep 23 '16 14:09 htesligte

I'm in the same situation, thank you for pointing out this constant, will help me a lot.

Btw, the page cache should be purged when updating private posts, see my issue Automattic/jetpack#25559.

marcomarsala avatar May 24 '17 09:05 marcomarsala

Duplicate of Automattic/jetpack#25571. This issue is most likely fixed in the latest version (1.6.3) of WP Super Cache (PR Automattic/wp-super-cache#577). Could you test it again on latest version?

stodorovic avatar Aug 12 '18 10:08 stodorovic

This should now be fixed. Feel free to reopen if the problem ever comes back.

jeherve avatar Aug 15 '22 07:08 jeherve