perusio/piwik-nginx — Issue #5: $no_cache better setting and cache for ui
Author: geistteufel
Created: 2011-11-06 11:14:30+00:00
State: open

Hi, thanks for the over patch, but I have suggestion :

for piwik.php the no_cache should be always set to 0.
for ui, we can have another directory of cache, with all module except POST and Real TIME cache.
All setting should no be cache too.

I run the crontab (archive.sh) every 5 min, or anything,
when the archive run, we can delete the cache directory to force a refresh.
another way, is to set the time of cache equal to the frequency you run the archive.sh.

So 2 vars could be add :

time_of_cache
subdir_for_cache

for piwiki.php
no_cache=0
time_of_cache = 2h
subdir_for_cache = stats

for index.php
time_of_cache = 5m (or anything we set for the crontab)
subdir_for_cache = ui (may be autodelete by crontab, but if time_of_cache is set the same skip the delete)
no_cache = 1 by default
except : module for stats

or no_cache = 0 by default
except POST, configuration module

I will setup this, and purpose a patch