allow some caching

This commit is contained in:
j 2011-11-01 17:13:26 +01:00
parent a0cf082dcf
commit 5b22b768a9
2 changed files with 3 additions and 2 deletions

View file

@ -135,4 +135,4 @@ def findLogs(request):
else:
response['data']['items'] = qs.count()
return render_to_json_response(response)
actions.register(findLogs, cache=False)
actions.register(findLogs)

View file

@ -1,7 +1,7 @@
// vim: et:ts=4:sw=4:sts=4:ft=javascript
pandora.ui.logsDialog = function() {
Ox.Request.clearCache('findLogs');
var height = Math.round((window.innerHeight - 48) * 0.9),
width = Math.round(window.innerWidth * 0.9),
numberOfLogs = 0,
@ -127,6 +127,7 @@ pandora.ui.logsDialog = function() {
'delete': function(data) {
pandora.api.removeLogs({ids: data.ids}, function(result) {
$list.reloadList();
Ox.Request.clearCache('findLogs');
});
}
}),