Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
robocoder opened this issue Dec 22, 2011 · 4 comments
Closed

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

robocoder opened this issue Dec 22, 2011 · 4 comments
Assignees
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Milestone

Comments

@robocoder
Copy link
Contributor

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.

Thoughts?

@mattab
Copy link
Member

mattab commented Feb 17, 2013

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

@mattab
Copy link
Member

mattab commented Feb 17, 2013

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

@anonymous-matomo-user
Copy link

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

@anonymous-matomo-user
Copy link

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

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Projects
None yet
Development

No branches or pull requests

3 participants