delete the projector cache after 1 second.
This commit is contained in:
parent
13b5336af9
commit
2d9b0a8848
@ -113,14 +113,14 @@ class Projector(TemplateView, AjaxMixin):
|
|||||||
content = render_block_to_string(
|
content = render_block_to_string(
|
||||||
self.get_template_names()[0],
|
self.get_template_names()[0],
|
||||||
'content', self.data)
|
'content', self.data)
|
||||||
cache.set('projector_content', content)
|
cache.set('projector_content', content, 1)
|
||||||
|
|
||||||
scrollcontent = cache.get('projector_scrollcontent')
|
scrollcontent = cache.get('projector_scrollcontent')
|
||||||
if not scrollcontent:
|
if not scrollcontent:
|
||||||
scrollcontent = render_block_to_string(
|
scrollcontent = render_block_to_string(
|
||||||
self.get_template_names()[0],
|
self.get_template_names()[0],
|
||||||
'scrollcontent', self.data)
|
'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
|
# TODO: do not call the hole data-methode, if we only need some vars
|
||||||
|
Loading…
Reference in New Issue
Block a user