(Web API) Cache strategy

Registered by Lars Helge Øverland on 2012-03-12

A solution for configurable caching of data resources in the Web API. For the typical DHIS setup the aggregated data/data mart will be refreshed every day at midnight. This information can be utilized in order to cache data resources (reports, charts, maps etc) in a more intelligent way. If data is refreshed every night we can safely ask clients (like web browsers) to cace such representations until the next morning. This can be done through the "Cache-control" and "Expires" HTTP headers.

This should be configurable through a general system setting called "Cache strategy" with options "No cache", "Cache until 6 AM tomorrow", "Cache for two weeks".

This will improve the scalability for DHIS especially when used as a backbone for public web portals. More and more internal report tools (like the dashboard) are using the Web API and will also benefit from this.

Blueprint information

Status:
Complete
Approver:
Lars Helge Øverland
Priority:
Undefined
Drafter:
None
Direction:
Approved
Assignee:
Lars Helge Øverland
Definition:
Approved
Series goal:
Accepted for trunk
Implementation:
Implemented
Milestone target:
milestone icon 2.8
Started by
Lars Helge Øverland on 2012-03-12
Completed by
Lars Helge Øverland on 2012-03-12

Related branches

Sprints

Whiteboard

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.