[1.7.x] Fixed #23023 -- Added warning against local-memory cache.

Thanks django at kerz.id.au.

Backport of 7d0519c725 from master