Commit 777b0a5fd6b48a595bfcb557cfa83c2f9970fb4d
1 parent
2402b6ba
Exists in
master
and in
28 other branches
Do not cache breadcrumbs block
Showing
2 changed files
with
8 additions
and
0 deletions
Show diff stats
plugins/breadcrumbs/lib/breadcrumbs_block.rb
@@ -45,6 +45,10 @@ class BreadcrumbsBlock < Block | @@ -45,6 +45,10 @@ class BreadcrumbsBlock < Block | ||
45 | end | 45 | end |
46 | end | 46 | end |
47 | 47 | ||
48 | + def cacheable? | ||
49 | + false | ||
50 | + end | ||
51 | + | ||
48 | protected | 52 | protected |
49 | 53 | ||
50 | CMS_ACTIONS = {:edit => _('Edit'), :upload_files => _('Upload Files'), :new => _('New')} | 54 | CMS_ACTIONS = {:edit => _('Edit'), :upload_files => _('Upload Files'), :new => _('New')} |
plugins/breadcrumbs/test/unit/breadcrumbs_block_test.rb
@@ -68,4 +68,8 @@ class BreadcrumbsBlockTest < ActiveSupport::TestCase | @@ -68,4 +68,8 @@ class BreadcrumbsBlockTest < ActiveSupport::TestCase | ||
68 | assert_equal '', instance_eval(&@block.content) | 68 | assert_equal '', instance_eval(&@block.content) |
69 | end | 69 | end |
70 | 70 | ||
71 | + should 'not be cacheable' do | ||
72 | + assert !@block.cacheable? | ||
73 | + end | ||
74 | + | ||
71 | end | 75 | end |