Automattic / jetpack

Security, performance, marketing, and design tools — Jetpack is made by WordPress experts to make WP sites safer and faster, and help you grow your traffic.
https://jetpack.com/
Other
1.59k stars 798 forks source link

Support Crowdhandler plugin in WP Super Cache #39196

Open Horgster opened 2 months ago

Horgster commented 2 months ago

Impacted plugin

Super Cache

What

Add support for Crowdhandler plugin in WP Super Cache

How

Hello!

First of all; the “WP Super Cache” is an fantastic caching plugin for our WordPress site, thanks to all of you making this possible!

We uses WordPress with WooCommerce and sell tickets that causes high volume peak traffic during the ticket release time, cause our site to often to stop responding due to the high traffic from our customers (DDos).

To resolve this, we have decided to implement the “waiting room plugin” from CrowdHandler.com, which is perhaps the best plugin in the market of this kind of waiting room lobby to handle such peak loads. This reduces the traffic to our wordpress site by 95% during these peaks, when needed.

These type of waiting room plugins requires dynamic content headers and sessions cookies not to be cached by any other plugins, e.g https://www.crowdhandler.com/docs/80001017374-crowdhandler-wordpress-plugin-and-caching-incompatibliities

Today we must disable “WP Super Cache” completely during usage of the “waiting room plugin”. This plugin will only be used at these days we have big tickets sales.

The Crowdhandler plugin adds e.g. following cookies and headers on each pages, the bold text below is the dynamic content that must not be cached and is generated each time the page or woocommerce product is loaded:

Set-Cookie: ch-id=tok0P8TKFrUxLsIv; path=/; domain=<Your wordpress domain>; secure x-crowdhandler-info: 1.1.12::xxxxxxxxxfe8ca8ff2c::1::1::2024-08-28T20:47:43+0000 location: https://wait.crowdhandler.com/0P8TIKcFGbFTZSaY?url=https%3A%2F%2Fdomain.com%2F&ch-public-key=xxxxxxxxfCCCCCC219e3cxxxxxxxx31fbbeaffe8ca8ff2c&ch-id=tok00000000

Would it be possible for the “WP Super Cache” team to add direct support of “Crowdhandler Waiting Room Plugin” as a Enable / Disable support CrowdHandler checkbox in WP Super Cache or simply make an whitelisting form for headers and cookies with RegExpressions that WP Super Cache shall not cache?

This would be an super useful feature and would make WP Super Cache as the leading caching plugin on the market!

Having the possibility to provide full caching and at the sametime support waiting room fully, would avoid DDos behaviour on full peak times!

Thank you very much for your kind help and support! Best Regards Horgster

StefMattana commented 2 months ago

Forum reference: https://wordpress.org/support/topic/support-crowdhandler-plugin/ :)