Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cache not being cleaned on planned article #2752

Closed
solracsf opened this issue Jun 11, 2019 · 9 comments
Closed

Cache not being cleaned on planned article #2752

solracsf opened this issue Jun 11, 2019 · 9 comments

Comments

@solracsf
Copy link

Using Wordpress, the cache is not being cleaned on a planned article.

Our articles are published also on the homepage so they are published on the category but not in the homepage. only solution, re-save the article after it has been published.

@ithiru
Copy link

ithiru commented Jun 16, 2019

Yes, known issue. The plugin doesn't handle cache clear when scheduled post goes live. https://community.cloudflare.com/t/wordpress-plugin-automatic-cache-purge-doesnt-seem-to-work-when-scheduling-posts/76437

@solracsf
Copy link
Author

Does that modification solves the issue?

@ithiru
Copy link

ithiru commented Jun 17, 2019

It partially solves the problem by triggering the action, call the API to clear the cache. But the cache is not cleared properly, it should clear within 30 secs, but from my testing, it takes much more than that, even upto an hour sometimes..

Switching to https://github.com/cloudflare/worker-examples/tree/master/examples/edge-cache-html

@solracsf
Copy link
Author

Yes but I'm using the plugin of this repo and the problem remains.

And as we can see, the hook publish_future_post is not on the code either.

https://github.com/cloudflare/worker-examples/blob/master/examples/edge-cache-html/WordPress%20Plugin/cloudflare-page-cache/cloudflare-page-cache.php#L17

@ithiru
Copy link

ithiru commented Jun 18, 2019 via email

@xtuc
Copy link
Member

xtuc commented Nov 15, 2019

That's good to know. Would you mind sending a change to the plugin?

@utrenkner
Copy link

Any update on this issue? My client keeps asking me about planned posts...

I tried adding the hook for publish_future_post but I am not sure, which call would have the 'x-HTML-Edge-Cache: purgeall header. I tried /wp-cron.php and the login page. The post went live, but did not show due to caching.

@acs-ferreira How did you get it to work (half way)? What did you change in the code and which URL did you call to have the purgeall header appear in the response?

lukeed referenced this issue in cloudflare/templates Apr 29, 2022
@lauragift21 lauragift21 transferred this issue from cloudflare/templates Feb 17, 2023
@lauragift21
Copy link
Contributor

The templates repo has moved to workers-sdk monorepo, if you are still encountering problems with this, can you leave a comment and let us know.

@penalosa
Copy link
Contributor

penalosa commented Apr 3, 2023

@solracsf I'm closing this for now since we haven't heard from you in a while, but feel free to re-open if this is still an issue, and we can investigate further

@penalosa penalosa closed this as completed Apr 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants