perusio/piwik-nginx — Issue #9: Problems caching Piwik's index.php
Author: hostingnuggets
Created: 2011-12-13 20:28:46+00:00
State: open

Hi,

I am encountering a really weird problem. I am using nginx 1.0.10 with PHP 5.3.8 running as PHP FPM and using your config files for piwik (v1.6) with having changed the bare minimum (server_name and things like that but nothing much more).

Now the problem I get is that somehow the caching of index.php gets totally messed up: for example I logout of Piwik and login with a another user then I would see the stuff of the previous user. For me this is a real security issue. So somehow the new user which I login get the data cached from the previous user. Totally weird...

Now I noticed that if I uncomment the following two lines, as you can see below, in the "location = /index.php" in server{}:

## FastCGI cache.
## cache ui for 5m (set the same interval of your crontab)
# include sites-available/fcgi_cache.conf;
# fastcgi_cache_valid 5m;

I don't get this problem anymore. So it is pretty much related with caching... Now I still would like to be able to use caching but without this big problem.

Do you have any clues where this problem could come from? is it your config files? is it my piwik setup? or anything else?

Thanks in advance for your feedback.