Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
panikweb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
radiopanik
panikweb
Commits
f6aaa5f2
Commit
f6aaa5f2
authored
Aug 30, 2013
by
fred
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
set shorter cache livespan for onair.json
parent
d5b96b88
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
panikweb/views.py
panikweb/views.py
+2
-0
No files found.
panikweb/views.py
View file @
f6aaa5f2
...
...
@@ -2,6 +2,7 @@ from datetime import datetime, timedelta
import
time
import
math
from
django.views.decorators.cache
import
cache_control
from
django.views.generic.base
import
TemplateView
from
django.views.generic.detail
import
DetailView
from
django.views.decorators.csrf
import
csrf_exempt
...
...
@@ -442,6 +443,7 @@ class Listen(TemplateView):
listen
=
Listen
.
as_view
()
@
cache_control
(
max_age
=
25
)
@
csrf_exempt
@
to_json
(
'api'
)
def
onair
(
request
):
...
...
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