An annotation for server-side caching of named-get results
Bug #375353 reported by
Michael Nelson
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_
in front of the exported API method, caching the results (for given arguments), for 60 seconds.
Related branches
lp:~andrea.corbellini/lazr.restful/fix-375353
Merged
into
lp:lazr.restful
- Francis J. Lacoste (community): Approve
- LAZR Developers: Pending requested
- Diff: None lines
Changed in lazr.restful: | |
assignee: | nobody → Andrea Corbellini (andrea-bs) |
status: | New → In Progress |
Changed in lazr.restful: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Fix available in rev 40.