Ipstenu / varnish-http-purge

Proxy Cache Purge
Apache License 2.0
46 stars 48 forks source link

Asynchronous PHP #66

Open Ipstenu opened 6 years ago

Ipstenu commented 6 years ago

See if the PHP can be run async, to prevent unneeded slowdowns (and indeed, make the save a faster thing!)

Ipstenu commented 6 years ago

WARNING:

Also even if it was I'd like to mention (as nobody has yet) that many hosters have restrictive settings for the number of parallel php processes aka max_children php setting. For instance, for Gandi.net size M it is 4, for L it is 8. So if you'd PURGE'ed 8 URLs on parallel then you'd DOSed your server.

Okay so that's gonna have to be considered!