Comments (4)
That is awesome! I am going to look into this, since we're looking at a major rewrite and that may help a lot.
Sent from my phone
On Jul 20, 2014, at 3:43 AM, David Buchmann [email protected] wrote:
hi,
me and some other people built a client library to send purge and ban requests to varnish and also to nginx. this might be useful to reduce the code of this plugin to just the wordpress part, and use a well-tested library to talk with the varnish side.
https://github.com/FriendsOfSymfony/FOSHttpCacheif you want to discuss this, i am happy to explain further or clarify questions. we are short before a 1.0 release, it would still be time to adjust something if you miss flexibiltiy somewhere.
—
Reply to this email directly or view it on GitHub.
from varnish-http-purge.
great, good timing then it seems :-)
from varnish-http-purge.
@dbu Just came about this old issue. Interesting.
Is FOSHttpCache working async that is send-and-forget PURGE requests that do not block (waiting for a not needed response)? I've seen some reference to HttpAsyncClient on its GitHub repo. This has been discussed in #56 and #66, and there are doubts about this being possible at all with (single-threaded) php.
from varnish-http-purge.
the relevant action is in the http dispatcher. you can record requests to send (purge, ban, refresh) any time and we only send them when you call flush
. the requests are sent in parallel, but flush waits for everything to terminate.
in the symfony integration, flush is called in the kernel terminate step, that is after the response has been sent to the client, so as not to impact the response time. if wordpress has a similar event/hook then you could flush at that point.
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
- All purges happen twice with Gutenberg Editor 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.