[deploy] set search cache header using the current_user id if present (#6982)
This commit is contained in:
parent
d192188e82
commit
da916ae8e6
1 changed files with 1 additions and 1 deletions
|
|
@ -31,7 +31,7 @@ class StoriesController < ApplicationController
|
|||
def search
|
||||
@query = "...searching"
|
||||
@article_index = true
|
||||
set_surrogate_key_header "articles-page-with-query"
|
||||
set_surrogate_key_header "articles-page-with-query-#{current_user&.id}"
|
||||
render template: "articles/search"
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue