1 upstream php_fpm_lhc_stats {
2 server unix:/run/php5/fpm/lhc_stats;
5 map $request_method $lhc_stats_no_cache {
6 # NOTE: if non GET/HEAD, don't cache.
11 map $arg_module $lhc_stats_no_cache {
12 ## When we go through installation
13 ## or when we're on the dashboard for specific tasks.
14 Installation 1; # when invoking the installation module.
15 ~[^\&]*(?:Dashboard|Live|Goals|Admin|Manager) 1; # some tasks
17 map $arg_action $lhc_stats_no_cache {
18 ## The first installation steps don't invoke the installation module.
22 map $http_cookie $lhc_stats_no_cache {
23 ## Testing for the session cookie being present.
24 ## If there is then no caching is to be done.
25 ~PIWIK_SESSID 1; # Piwik session cookie