We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9423915 commit 7fd17d9Copy full SHA for 7fd17d9
app/models/better_together/platform.rb
@@ -43,6 +43,11 @@ class Platform < ApplicationRecord
43
before_save :purge_profile_image, if: -> { remove_profile_image == '1' }
44
before_save :purge_cover_image, if: -> { remove_cover_image == '1' }
45
46
+ def cache_key
47
+ "#{super}/#{css_block&.updated_at&.to_i}"
48
+ end
49
+
50
+ # TODO: Updating the css_block contents does not update the platform cache key. Needs platform attribute update before changes take effect.
51
def css_block
52
@css_block ||= blocks.find_by(type: 'BetterTogether::Content::Css')
53
end
0 commit comments