Commit 13bfbc82 by David Ormsbee

Prevent caching of block showing top status bar (used for system alert notifications).

parent 8b0f1a03
......@@ -7,8 +7,6 @@ import logging
import os
import sys
from util.cache import cache
log = logging.getLogger(__name__)
def get_site_status_msg():
......
......@@ -10,9 +10,12 @@ from django.core.urlresolvers import reverse
import branding
# app that handles site status messages
from status.status import get_site_status_msg
site_status_msg = get_site_status_msg()
%>
<%block cached="False">
<%
site_status_msg = get_site_status_msg()
%>
% if site_status_msg:
<div class="site-status">
<div class="inner-wrapper">
......@@ -21,7 +24,7 @@ site_status_msg = get_site_status_msg()
</div>
</div>
% endif
</%block>
% if course:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment