Skip to content

Commit

Permalink
revert search cacheing attempts
Browse files Browse the repository at this point in the history
  • Loading branch information
kyokukou committed Jul 12, 2024
1 parent 3ebdc45 commit 575e996
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions search/controllers/advanced/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,7 @@ def search(request_params: MultiDict) -> Response:
# example, we can generate new form-friendly requests to update sort
# order and page size by embedding the form (hidden).
response_data["form"] = form
headers={}
headers["Cache-Control"]="max-age=600"
return response_data, HTTPStatus.OK, headers
return response_data, HTTPStatus.OK, {}


def _query_from_form(form: forms.AdvancedSearchForm) -> AdvancedQuery:
Expand Down
4 changes: 1 addition & 3 deletions search/controllers/simple/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,7 @@ def search(
q = None
response_data["query"] = q
response_data["form"] = form
headers={}
headers["Cache-Control"]="max-age=600"
return response_data, HTTPStatus.OK, headers
return response_data, HTTPStatus.OK, {}


def retrieve_document(document_id: str) -> Response:
Expand Down

0 comments on commit 575e996

Please sign in to comment.