diff --git a/boards/templates/boards/base.html b/boards/templates/boards/base.html
--- a/boards/templates/boards/base.html
+++ b/boards/templates/boards/base.html
@@ -25,7 +25,7 @@
-
+
diff --git a/boards/urls.py b/boards/urls.py
--- a/boards/urls.py
+++ b/boards/urls.py
@@ -49,7 +49,7 @@ urlpatterns = patterns('',
url(r'^thread/(?P\w+)/rss/$', ThreadPostsFeed()),
# i18n
- url(r'^jsi18n/$', 'django.views.i18n.javascript_catalog', js_info_dict),
+ url(r'^jsi18n/$', 'boards.views.cached_js_catalog', js_info_dict, name='js_info_dict'),
# API
url(r'^api/post/(?P\w+)/$', views.get_post, name="get_post"),
diff --git a/boards/views.py b/boards/views.py
--- a/boards/views.py
+++ b/boards/views.py
@@ -13,6 +13,8 @@ from django.template import RequestConte
from django.shortcuts import render, redirect, get_object_or_404
from django.utils import timezone
from django.db import transaction
+from django.views.decorators.cache import cache_page
+from django.views.i18n import javascript_catalog
from boards import forms
import boards
@@ -447,6 +449,10 @@ def get_post(request, post_id):
return render(request, 'boards/post.html', context)
+@cache_page(86400)
+def cached_js_catalog(request, domain='djangojs', packages=None):
+ return javascript_catalog(request, domain, packages)
+
def _get_theme(request, user=None):
"""Get user's CSS theme"""