[deploy] set search cache header using the current_user id if present (#6982)

This commit is contained in:
Molly Struve 2020-03-31 15:01:06 -05:00 committed by GitHub
parent d192188e82
commit da916ae8e6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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