You're viewing old version number 7. - Current version
HTTP Caching
http://www.jimwestergren.com/wordpress-with-redis-as-a-frontend-cache/
https://github.com/atomical/redis-wp-cache
https://github.com/ericmann/Redis-Object-Cache
"You are still invoking PHP when you don’t actually need to. – You can cut this speed down and load even further by interfacing with Redis directly from Nginx"
“apt-get install memcached php5-memcache”
http://jothut.com/cgi-bin/junco.pl/blogpost/44045/25Sep2014/Nginx-and-Redis-September-2014
http://jothut.com/cgi-bin/junco.pl/blogpost/44043/08Sep2014/Nginx-and-Memcached-September-2014
http://blog.octo.com/en/http-caching-with-nginx-and-memcached/
http://wiki.nginx.org/HttpProxyModule
http://nginx.org/en/docs/http/ngx_http_memcached_module.html
https://www.igvita.com/2008/02/11/nginx-and-memcached-a-400-boost/
https://eamann.com/tech/ludicrous-speed-wordpress-caching-with-redis/
http://www.nodex.co.uk/article/13-04-12/high-performance-caching-with-nginx-redis-and-php
http://redis.io/
http://redis.io/topics/twitter-clone
http://wiki.nginx.org/HttpRedis
https://www.varnish-cache.org/
https://www.varnish-cache.org/docs/4.0/
Etc.
http://jothut.com/cgi-bin/junco.pl/blogpost/397/21Nov2013/KeyValue-database-info
http://code.flickr.net/2013/03/26/using-redis-as-a-secondary-index-for-mysql/
Nginx config
https://www.igvita.com/2008/02/11/nginx-and-memcached-a-400-boost/
For using memecached
user usr usr;
worker_processes 2;
http {
types {
text/javascript js;
application/xml xml;
}
# By default, return content sa
default_type application/xml;
access_log /home/api/logs/nginx.log main;
sendfile on;
tcp_nopush on;
keepalive_timeout 65;
tcp_nodelay on;
# app. server(s) / cluster definition
upstream dynamic_srv { server 127.0.0.1:9020; }
server {
listen 9000;
server_name srv;
root /home/usr;
	# Match any request that begins with /dynamic_request
location /dynamic_request {
	
	 # Append a file-extension to every request
if ($args ~* format=json) { rewrite ^/dynamic_request/?(.*)$ /dynamic_request.js$1 break; }
if ($args ~* format=xml) { rewrite ^/dynamic_request/?(.*)$ /dynamic_request.xml$1 break; }
	 # Check if local memcached server can answer this request
memcached_pass 127.0.0.1:11211;
	 # Send to app. server if Memcached could not ansewr the request
error_page 404 = @dynamic_request;
}
location @dynamic_feed_id {
# only internal requests can reach this endpoint
internal;
# dispatch to our app_server cluster / instance
proxy_pass <a href="http://dynamic_srv;">http://dynamic_srv;</a>
}
}
}
From JR's : articles
212 words - 3220 chars
- 1 min read
created on
updated on
- #
source
- versions