Git Product home page Git Product logo

Comments (9)

ithiru avatar ithiru commented on May 19, 2024

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

from workers-sdk.

solracsf avatar solracsf commented on May 19, 2024

Does that modification solves the issue?

from workers-sdk.

ithiru avatar ithiru commented on May 19, 2024

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

from workers-sdk.

solracsf avatar solracsf commented on May 19, 2024

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

from workers-sdk.

ithiru avatar ithiru commented on May 19, 2024

from workers-sdk.

xtuc avatar xtuc commented on May 19, 2024

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

from workers-sdk.

utrenkner avatar utrenkner commented on May 19, 2024

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?

from workers-sdk.

lauragift21 avatar lauragift21 commented on May 19, 2024

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.

from workers-sdk.

penalosa avatar penalosa commented on May 19, 2024

@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

from workers-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.