Which kind of data should be cached?

Asked by Markus Korn on 2008-11-28

During the last few days I tried to understand how this caching feature in launchpadlib works. From reading the blog entry on news.launchpad.net [0] I came to the conclusion that all data is cached in the cache directory.

However the result of .searchTasks(), like:
>>> bughelper = launchpad.projects["bughelper"]
>>> tasks = bughelper.searchTasks()
is not cached, no file for this data is created.
Is this intended, just the way it works? or is this a bug?

Thanks,
Markus

[0] http://news.launchpad.net/cool-new-stuff/this-week-in-launchpads-web-ap

Question information

Language:
English Edit question
Status:
Solved
For:
launchpadlib Edit question
Assignee:
No assignee Edit question
Solved by:
Francis J. Lacoste
Solved:
2008-11-28
Last query:
2008-11-28
Last reply:
2008-11-28
Best Francis J. Lacoste (flacoste) said : #1

We only support ETag when retrieving or modifying a single entry.

All collections or operations will always return the full content. Note though that we'll be adding the Etag to the entry representation so that if you retrieve an entry using an operation or through a collection, it will be able to fill the HTTP cache so that a GET or PUT to that resource will use the cache.

Markus Korn (thekorn) said : #2

Thanks Francis J. Lacoste, that solved my question.