-
Notifications
You must be signed in to change notification settings - Fork 303
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
do not use disk-based cache for what's already in memory
- Loading branch information
1 parent
c2794b2
commit af34eee
Showing
2 changed files
with
1 addition
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,14 +9,12 @@ | |
|
||
from fle_utils.internet.decorators import api_handle_error_with_json | ||
from fle_utils.internet.classes import JsonResponse, JsonResponseMessageError | ||
from fle_utils.internet.webcache import backend_cache_page | ||
|
||
from kalite.topic_tools import get_topic_tree | ||
from kalite.topic_tools.content_recommendation import get_resume_recommendations, get_next_recommendations, get_explore_recommendations | ||
from kalite.facility.models import FacilityUser | ||
|
||
@api_handle_error_with_json | ||
@backend_cache_page | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
benjaoming
Author
Contributor
|
||
def topic_tree(request, channel): | ||
parent = request.GET.get("parent") | ||
return JsonResponse(get_topic_tree(channel=channel, language=request.language, parent=parent)) | ||
|
Would be good to get double confirmation from @rtibbles that the topic tree hard/soft-caching stuff doesn't depend on this.