MKANET

Untitled

Apr 23rd, 2023 (edited)
255
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. #RAMDisk Cache Example:
  2.  
  3. http {
  4. proxy_cache_path w:/ramcache/proxy_cache levels=1:2 keys_zone=cache:10m max_size=4096m inactive=24h;
  5. proxy_temp_path w:/ramcache/proxy_temp;
  6.  
  7. server {
  8. proxy_cache cache;
  9. proxy_cache_lock on;
  10. proxy_cache_valid 1h;
  11. proxy_cache_use_stale updating;
  12. proxy_cache_key "$scheme$host$request_uri $cookie_mysession-cookie";
  13.  
  14.  
Advertisement
Add Comment
Please, Sign In to add comment