Commit 64e78c0911a6e21dcb5fbdf0c7d2fa91fed23dcf

Authored by Victor Costa
1 parent 7513eb46

Do not cache context content block

plugins/context_content/lib/context_content_block.rb
@@ -88,4 +88,8 @@ class ContextContentBlock < Block @@ -88,4 +88,8 @@ class ContextContentBlock < Block
88 end 88 end
89 end 89 end
90 90
  91 + def cacheable?
  92 + false
  93 + end
  94 +
91 end 95 end
plugins/context_content/test/unit/context_content_block_test.rb
@@ -171,4 +171,8 @@ class ContextContentBlockTest < ActiveSupport::TestCase @@ -171,4 +171,8 @@ class ContextContentBlockTest < ActiveSupport::TestCase
171 assert_equal profile, block.profile 171 assert_equal profile, block.profile
172 end 172 end
173 173
  174 + should 'not be cacheable' do
  175 + assert !@block.cacheable?
  176 + end
  177 +
174 end 178 end