Unuse ActiveRecord::Base#cache_key (#8185)

* Unuse ActiveRecord::Base#cache_key

* Enable cache_versioning

* Call cache_collection
This commit is contained in:
abcang authored and Eugen Rochko committed 2018-08-19 15:52:38 +02:00
1 parent 0d1d9b9a33
commit 9e75aa30cd
6 files changed
+9 -17

No files matched your search

+1 -1
View File
@@ -42,7 +42,7 @@ class AccountsController < ApplicationController
format.json do
skip_session!
render_cached_json(['activitypub', 'actor', @account.cache_key], content_type: 'application/activity+json') do
render_cached_json(['activitypub', 'actor', @account], content_type: 'application/activity+json') do
ActiveModelSerializers::SerializableResource.new(@account, serializer: ActivityPub::ActorSerializer, adapter: ActivityPub::Adapter)
end
end