An annotation for server-side caching of named-get results

Bug #375353 reported by Michael Nelson
14
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lazr.restful
Fix Released
Undecided
Andrea Corbellini

Bug Description

It could be really useful to be able to specify that the result of an API call for a method on an object should be cached on the server for a specified time.

We had a situation where over 100 unique IP addresses were apparently viewing the one PPA page, which was requesting build status updates via the API for the same data.

It'd be neat to be able to just add:
@cache_results(60000)

in front of the exported API method, caching the results (for given arguments), for 60 seconds.

Related branches

Changed in lazr.restful:
assignee: nobody → Andrea Corbellini (andrea-bs)
status: New → In Progress
Revision history for this message
Andrea Corbellini (andrea.corbellini) wrote :

Fix available in rev 40.

Changed in lazr.restful:
status: In Progress → Fix Committed
Revision history for this message
Michael Nelson (michael.nelson) wrote :

Nice! Thanks Andrea :)

Changed in lazr.restful:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.