Standardize cache_key generation

This commit is contained in:
Ruud committed 2013-09-03 12:48:24 +02:00
1 parent 97c456c9e1
commit 6af00bf026
3 files changed
+9 -8

No files matched your search

+2 -2
View File
@@ -35,7 +35,7 @@ class Suggestion(Plugin):
suggestions = cached_suggestion
else:
suggestions = fireEvent('movie.suggest', movies = movies, ignore = ignored, single = True)
self.setCache(md5(ss('suggestion_cached')), suggestions, timeout = 6048000) # Cache for 10 weeks
self.setCache('suggestion_cached', suggestions, timeout = 6048000) # Cache for 10 weeks
return {
'success': True,
@@ -87,6 +87,6 @@ class Suggestion(Plugin):
if suggestions:
new_suggestions.extend(suggestions)
self.setCache(md5(ss('suggestion_cached')), new_suggestions, timeout = 6048000)
self.setCache('suggestion_cached', new_suggestions, timeout = 6048000)
return new_suggestions