Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Tracker cache files should expire to pick up recent changes #2830

robocoder opened this Issue · 4 comments

3 participants


Currently, tracker cache files in /tmp/cache/tracker/ are never deleted. This file stores Goals definitions, website URLs, etc. The problem is that, when goal change, the tracker cache files are deleted on the server on which the Piwik UI is running.

But the tracker cache files will not be deleted from the tracking servers if they are different servers.

I see 2 solutions to this:

  • Update the Piwik load balancing FAQ and explain that the tmp/ folder must be cleared in a cron file every hour or so
  • Update tracker cache file to add a expiry for example every 1 hour the cache files could be rebuilt from the DB. This means that any change to Goals and Websites would take up to 1 hour to be reflected upon tracking.

Alternatively, but more complicated, we could prepare a memory / memcache layer, but this would be more complicated to setup and maintain.



In 7dfad00: Fixes #2830 Implementing Tracker Cache TTL (in config file, [Tracker]


In 2854a29: Refs #2830 More fixes forgot in previous commit


In d152c93: Fixes #2830 Implementing Tracker Cache TTL (in config file, [Tracker]


In 1cd66a2: Refs #2830 More fixes forgot in previous commit

@robocoder robocoder added this to the 1.x - Piwik 1.x milestone
@mattab mattab was assigned by robocoder
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.