wp-ffpc icon indicating copy to clipboard operation
wp-ffpc copied to clipboard

Add gzip comression data before set memcached key

Open PutinVladimir opened this issue 6 years ago • 0 comments

Please do php 'gzencode' $data before save to memcached and add $flags to 'set' it is undocumented but work in memcached: set($key, $data, $expire, 1); get($key, null, null, $flags); //$flags now is 1

After that we can use nginx with comressed memcached content with gunzip on; &memcached_gzip_flag 1;

Benifits is less memory for memcached and less cpu usage of nginx.

PutinVladimir avatar Jan 03 '19 14:01 PutinVladimir