We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1d2a117 commit b771f34Copy full SHA for b771f34
src/drop-in/object-cache.php
@@ -157,7 +157,7 @@ private function cache_key(
157
158
// Unfortunately WordPress uses a lot of keys with spaces,
159
// and the memcached text protocol doesn't allow that.
160
- if ( ! SNAPCACHE_MEMCACHED_USE_BINARY ) {
+ if ( ! SNAPCACHE_MEMCACHED_USE_BINARY && str_contains( $key, ' ' ) ) {
161
$key = str_replace( ' ', '_', $key );
162
}
163
0 commit comments