diff --git a/app/view_objects/articles/social_image.rb b/app/view_objects/articles/social_image.rb index 6ea3a5710..57e8584ca 100644 --- a/app/view_objects/articles/social_image.rb +++ b/app/view_objects/articles/social_image.rb @@ -32,9 +32,9 @@ module Articles attr_reader :article def legacy_article_social_image - cache_key = "article-social-img-#{article}-#{article.updated_at}-#{article.comments_count}" + cache_key = "article-social-img-#{article}-#{article.updated_at.rfc3339}-#{article.comments_count}" - Rails.cache.fetch(cache_key, expires_in: 1.hour) do + RedisRailsCache.fetch(cache_key, expires_in: 1.hour) do src = GeneratedImage.new(article).social_image return src if src.start_with? "https://res.cloudinary.com/"