Comments (9)
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.
Does that modification solves the issue?
from workers-sdk.
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.
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.
from workers-sdk.
from workers-sdk.
That's good to know. Would you mind sending a change to the plugin?
from workers-sdk.
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.
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.
@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)
- Vitest integration doesn't respect `os.availableParallelism()`/`os.cpus().length`
- Ensure wider compatibility with npm ecosystem
- Audit Vitest integration's internal API usage and add test to `vitest-ecosystem-ci` HOT 1
- Automatically re-run `SELF` Vitest tests without including `import <main>`
- Ensure `console.log()`s displayed with `SELF` and no async work in Vitest integration
- Ensure JSRPC/named entrypoints are supported for `SELF` binding and Durable Object bindings to same worker in Vitest integration
- Support cross-request-context dynamic `import()` statements with `SELF` and user Durable Objects in Vitest integration
- Reset Durable Object alarms between tests
- `Expected Vitest to start running before importing modules` message should call out checking for multiple `vitest` versions
- `require() is not yet implemented in Workers` error message should include referrer/specifier/stack in Vitest integration
- Support step-through debugging of Vitest tests HOT 1
- Additional meta-testing for the Workers Vitest integration
- Vitest fake timers don't affect storage simulators
- Improve Workers Vitest integration performance
- Investigate why module graph isn't supported in Vitest UI with Workers integration
- 🐛 BUG: R2 Create Storage Base API were wrong HOT 1
- 🐛 BUG: workers.api.error.unknown [code: 10013] HOT 3
- 🚀 Feature Request: Improved deployments list view using `wrangler` HOT 1
- 🚀 Feature Request: Query Versions by tag
- 🚀 Feature Request: `--output` option for `wrangler versions list/view` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from workers-sdk.