Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Re: Nginx cache 1 KEY into multiple cache files (cache not running)

$
0
0
itpp2012 Wrote:
-------------------------------------------------------
> > proxy_cache_key $cache_uri;
>
> Try:
> proxy_cache_key $scheme$host$request_method$request_uri;

Tested, but just the same:

Here, the top 10 KEYS with more cache files (clones):

root@hyperserver [/var/nginx.cache/xxxxx]# find -type f -exec grep -a "KEY: " {} \; | sort | uniq -c | sort -n | tail -n 10
114 KEY: httpxxxxx.comGET/wp-content/themes/sahifa/timthumb.php?src=/wp-content/uploads/2015/11/Domingo.jpg&h=125&w=272&a=c
116 KEY: httpxxxxx.comGET/wp-content/themes/sahifa/timthumb.php?src=/wp-content/uploads/2015/11/Alondra.jpg&h=125&w=272&a=c
117 KEY: httpxxxxx.comGET/wp-content/themes/sahifa/timthumb.php?src=/wp-content/uploads/2015/11/Alfredo.jpg&h=125&w=272&a=c
119 KEY: httpxxxxx.comGET/wp-content/themes/sahifa/timthumb.php?src=/wp-content/uploads/2013/04/Sergio.jpg&h=50&w=50&a=c
119 KEY: httpxxxxx.comGET/wp-content/themes/sahifa/timthumb.php?src=/wp-content/uploads/2015/11/Amir.jpg&h=50&w=50&a=c
119 KEY: httpxxxxx.comGET/wp-content/themes/sahifa/timthumb.php?src=/wp-content/uploads/2015/11/Domingo.jpg&h=50&w=50&a=c
119 KEY: httpxxxxx.comGET/wp-content/themes/sahifa/timthumb.php?src=/wp-content/uploads/2015/11/Edmundo.jpg&h=50&w=50&a=c
120 KEY: httpxxxxx.comGET/wp-content/themes/sahifa/timthumb.php?src=/wp-content/uploads/2012/11/por-que-se-producen-las-luchas-de-poder.jpg&h=50&w=50&a=c
120 KEY: httpxxxxx.comGET/wp-content/themes/sahifa/timthumb.php?src=/wp-content/uploads/2015/11/Alfredo.jpg&h=50&w=50&a=c
120 KEY: httpxxxxx.comGET/wp-content/themes/sahifa/timthumb.php?src=/wp-content/uploads/2015/11/Alondra.jpg&h=50&w=50&a=c


In other words, "KEY: httpxxxxx.comGET/wp-content/themes/sahifa/timthumb.php?src=/wp-content/uploads/2015/11/Alondra.jpg&h=50&w=50&a=c" has 120 files at cache.

I have several servers and this is the only one having this problem. I think maybe nofiles at limits.conf could be something related?

Running out of ideas... please help!

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>