diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index e0d9cb87..f0a24d4a 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -151,6 +151,7 @@ def cached_authors_in_genre Rails.cache.fetch('au_by_genre', expires_in: 24.hours) do # memoize totals = Person.has_toc .joins(involved_authorities: :work) + .merge(InvolvedAuthority.role_author) .group(:genre) .distinct .count