This commit is contained in:
dannotripp 2026-02-04 04:52:22 +07:00 committed by GitHub
commit bdda31eed7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4610,7 +4610,7 @@ NULL
char *opt = c->argv[2]->ptr;
if (!strcasecmp(opt,"yes")) {
if (c->flags & CLIENT_TRACKING_OPTIN) {
if (c->flags & CLIENT_TRACKING_OPTIN || c->flags & CLIENT_TRACKING_BCAST) {
c->flags |= CLIENT_TRACKING_CACHING;
} else {
addReplyError(c,"CLIENT CACHING YES is only valid when tracking is enabled in OPTIN mode.");