wordpress-pecl-memcached-object-cache
wordpress-pecl-memcached-object-cache copied to clipboard
Using with Wordpress REST API
Possible noob question...I'm using the Wordpress REST API and have implemented this, but when I make an xhr request it doesn't seem to to be caching properly. The test script works and returns:
Value is 100. The WordPress Memcached Backend is working!
Is there anything else I need to do in order for this to work on data loaded via the wordpress REST API? This is the response header ...
Access-Control-Allow-Headers:Authorization
Access-Control-Expose-Headers:X-WP-Total, X-WP-TotalPages
Allow:GET
Cache-Control:no-cache, must-revalidate, max-age=0
Connection:Keep-Alive
Content-Length:1741
Content-Type:application/json; charset=UTF-8
Date:Sat, 14 May 2016 21:37:46 GMT
Expires:Wed, 11 Jan 1984 05:00:00 GMT
Keep-Alive:timeout=5, max=99
Last-Modified:
Pragma:no-cache
Server:Apache/2.2.22 (Ubuntu)
X-Content-Type-Options:nosniff
X-Powered-By:PHP/5.3.10-1ubuntu3.22
X-WP-DeprecatedFunction:register_api_field (since WPAPI-2.0; use register_rest_field instead)
X-WP-Total:1
X-WP-TotalPages:1