delete the projector cache after 1 second.

This commit is contained in:
Oskar Hahn 2012-11-07 10:05:38 +01:00
parent 13b5336af9
commit 2d9b0a8848
1 changed files with 2 additions and 2 deletions

View File

@ -113,14 +113,14 @@ class Projector(TemplateView, AjaxMixin):
content = render_block_to_string(
self.get_template_names()[0],
'content', self.data)
cache.set('projector_content', content)
cache.set('projector_content', content, 1)
scrollcontent = cache.get('projector_scrollcontent')
if not scrollcontent:
scrollcontent = render_block_to_string(
self.get_template_names()[0],
'scrollcontent', self.data)
cache.set('projector_scrollcontent', scrollcontent)
cache.set('projector_scrollcontent', scrollcontent, 1)
# TODO: do not call the hole data-methode, if we only need some vars