HTTP Caching
Maybe the most helpful, for now:
- http://www.nodex.co.uk/article/13-04-12/high-performance-caching-with-nginx-redis-and-php
- http://wiki.nginx.org/HttpRedis#Download
Alt:
- https://www.digitalocean.com/community/tutorials/how-to-setup-fastcgi-caching-with-nginx-on-your-vps
- https://rtcamp.com/wordpress-nginx/tutorials/single-site/fastcgi-cache-with-purging/
- 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://stackoverflow.com/questions/6236078/how-to-clear-the-cache-of-nginx
- https://rtcamp.com/wordpress-nginx/tutorials/single-site/fastcgi-cache-with-purging/
- https://serversforhackers.com/editions/2014/09/09/nginx-caching/
- http://www.jeedo.net/lightning-fast-wordpress-with-nginx-redis/
- http://www.saltwebsites.com/2012/install-redis-245-service-centos-6
http://mkuplens.com/blog/2013/09/30/compiling-nginx-ngx_cache_purge-for-wordpress-on-centos/
http://labs.frickle.com/nginx_ngx_cache_purge/
https://serversforhackers.com/editions/2014/09/09/nginx-caching/
https://github.com/FRiCKLE/ngx_cache_purge
http://stackoverflow.com/questions/6236078/how-to-clear-the-cache-of-nginx
http://serverfault.com/questions/472679/nginx-fastcgi-cache-path
Nginx FastCGI cache
https://gist.github.com/magnetikonline/10450786
nginx -t && service nginx reload
curl -I http://maketoledo.com/post/about
https://rtcamp.com/wordpress-nginx/tutorials/checklist/
https://rtcamp.com/tutorials/nginx/upstream-cache-status-in-response-header/
https://rtcamp.com/wordpress-nginx/tutorials/single-site/fastcgi-cache-with-purging/
https://github.com/FRiCKLE/ngx_cache_purge/
http://serverfault.com/questions/434915/nginix-proxy-caching-how-to-check-if-it-is-working
http://serverfault.com/questions/326425/nginx-verify-if-nginx-if-pulling-from-cache
http://nginx.org/en/docs/http/ngx_http_memcached_module.html#memcached_pass
http://nginx.com/resources/admin-guide/caching/
https://www.digitalocean.com/community/tutorials/how-to-setup-fastcgi-caching-with-nginx-on-your-vps
http://nginx.com/resources/admin-guide/reverse-proxy/
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/
https://github.com/NodeBB/NodeBB
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
260 words - 5417 chars
- 1 min read
created on
updated on
- #
source
- versions
- backlinks