Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
FAST
project
fast-project-list
Commits
6979a104
Commit
6979a104
authored
Nov 19, 2019
by
Steve Weber
💠
Browse files
Add some cache for the large overlay code
closed
#9
parent
1a4bd778
Pipeline
#35798
canceled with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
overlay/views.py
overlay/views.py
+3
-0
No files found.
overlay/views.py
View file @
6979a104
from
django.shortcuts
import
render
,
get_object_or_404
from
django.core.exceptions
import
PermissionDenied
from
django.views.decorators.csrf
import
csrf_exempt
from
django.views.decorators.cache
import
cache_control
from
django.core.mail
import
EmailMessage
from
django.template
import
*
from
django.template
import
loader
...
...
@@ -9,7 +10,9 @@ from projector.models import Project
from
urllib.parse
import
urlparse
import
json
# Create your views here.
@
cache_control
(
max_age
=
3600
)
def
overlay_bundle
(
request
,
pk
):
context
=
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment