浏览 682
配置示例:
http { slowfs_cache_path /tmp/cache levels=1:2 keys_zone=fastcache:10m; slowfs_temp_path /tmp/temp 1 2; server { location / { root /var/www; slowfs_cache fastcache; slowfs_cache_key $uri; slowfs_cache_valid 1d; } location ~ /purge(/.*) { allow 127.0.0.1; deny all; slowfs_cache_purge fastcache $1; } } }
清理缓存需要借助插件 ngx_cache_purge
按点赞数排序
按时间排序