Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
a23cfda6
Unverified
Commit
a23cfda6
authored
4 years ago
by
David Ormsbee
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #21402 from open-craft/paulo/disable_discussion_cache
Disable caching in forum home
parents
926a40de
708f32bf
No related branches found
Branches containing commit
Tags
release-2021-03-23-15.07
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lms/djangoapps/discussion/views.py
+2
-0
2 additions, 0 deletions
lms/djangoapps/discussion/views.py
with
2 additions
and
0 deletions
lms/djangoapps/discussion/views.py
+
2
−
0
View file @
a23cfda6
...
...
@@ -18,6 +18,7 @@ from django.template.loader import render_to_string
from
django.urls
import
reverse
from
django.utils.translation
import
get_language_bidi
from
django.utils.translation
import
ugettext_lazy
as
_
from
django.views.decorators.cache
import
cache_control
from
django.views.decorators.csrf
import
ensure_csrf_cookie
from
django.views.decorators.http
import
require_GET
,
require_http_methods
from
edx_django_utils.monitoring
import
function_trace
...
...
@@ -253,6 +254,7 @@ def inline_discussion(request, course_key, discussion_id):
})
@cache_control
(
no_cache
=
True
,
no_store
=
True
,
must_revalidate
=
True
)
@login_required
@use_bulk_ops
def
forum_form_discussion
(
request
,
course_key
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment