Comments (2)
The issue, as mentioned in Gutenberg's ticket, is that Gutenberg itself is saving twice IF there's a meta box. There's no easy way to check if something is gutenberg and if it did (or didn't) already save the meta, so you kind of have to deal with a double purge until there's a better hook :(
Also most of the proposed fixes require knowing the post type you're hooking into (post, pages, custom...) which I can't know. Unlike the fix used for social media posts, we want to run on update as well as on initial post, but it's possible to take some of https://gist.github.com/n7studios/56fd05f19f5da26f19f6da0ccb57b144#file-post-to-social-php-L67 and use that to determine. I'll mess around with it.
FWIW since I'm not watching post transitions in the same way, it's not a 1-to-1 same situation :/
from varnish-http-purge.
I agree the most ideal solution involves changes to WP Core hooks. I just noticed the duplicate purge requests and wanted to document the behavior here so people didn't spend time investigating something I already researched.
from varnish-http-purge.
Related Issues (20)
- Problems with varnish-6.6.2
- Request to take over HOT 1
- PURGE requests should be non-blocking & Issues with redirection/302/WP HTTP API HOT 7
- Better formatting of grep output HOT 2
- Deep Dive on what Woo does differently HOT 7
- Prevent Duplicate URLs from being flushed HOT 1
- Asynchronous PHP HOT 1
- Strip all query params from the urls
- How to purge URLs that contain language cookies? HOT 3
- WooCommerce checkout causes 6 calls to VarnishPurger->purge_post per cart item HOT 3
- Undefined variable: footer_text in varnish-http-purge/settings.php on line 507 HOT 1
- "The "Age" header is set to an invalid time, which will result in incorrect caching." HOT 3
- Purging all at customize_save_after HOT 2
- Multiple IP functionality not working. HOT 10
- Unable to find a caching service active for this domain. HOT 3
- Varnish 4 and RegExp Purge HOT 1
- VCL optimizations HOT 40
- Cache Service Varnish caching service is running but is unable to cache your site. HOT 14
- Rest API archives / partial regex purge HOT 2
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 varnish-http-purge.