Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
17d53860
Commit
17d53860
authored
Jul 21, 2017
by
Afzal Wali Naushahi
Committed by
GitHub
Jul 21, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #15632 from edx/afzaledx/clear_cached_programs
Clearing the cache if the site's configuration was removed.
parents
b524f0e1
e82053ee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
0 deletions
+1
-0
openedx/core/djangoapps/catalog/management/commands/cache_programs.py
+1
-0
No files found.
openedx/core/djangoapps/catalog/management/commands/cache_programs.py
View file @
17d53860
...
...
@@ -50,6 +50,7 @@ class Command(BaseCommand):
site_config
=
getattr
(
site
,
'configuration'
,
None
)
if
site_config
is
None
or
not
site_config
.
get_value
(
'COURSE_CATALOG_API_URL'
):
logger
.
info
(
'Skipping site {domain}. No configuration.'
.
format
(
domain
=
site
.
domain
))
cache
.
set
(
SITE_PROGRAM_UUIDS_CACHE_KEY_TPL
.
format
(
domain
=
site
.
domain
),
[],
None
)
continue
client
=
create_catalog_api_client
(
user
,
site
=
site
)
...
...
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