valhallasw/tsreports — pull request #1 by valhallasw (2012-08-02 18:55:34+00:00)
Title: New report cache

This branch implements a new report caching system. When the cache expires, the query is no longer executed in a blocking way, but on the background. While the query is running, the old, cached, report is displayed.

Old workflow:
```
request ----> cache expired? [no] -----> return cached data to user
[yes] ----> run query and store data ----> return new data
```

New workflow:
```
request ----> cache expired? [no] -----> return cached data to user
[yes] --+-> return cached data to user
/------------------------------/
-> cache refresh started more than [expiry] time ago?
[no] -> do nothing
[yes] -> run query and store data
```