Commit f137d4f6b7776b3d385c432001ef27311fb96ef5

Authored by Rodrigo Souto
2 parents 279bffda 8c4af9f0

Merge branch 'ai3082' into 'stable'

Disable cache of EnterpriseHomepage due to products changes

http://noosfero.org/Development/ActionItem3082
Showing 1 changed file with 5 additions and 0 deletions   Show diff stats
app/models/enterprise_homepage.rb
... ... @@ -26,6 +26,11 @@ class EnterpriseHomepage < Article
26 26 end
27 27 end
28 28  
  29 + # disable cache because of products
  30 + def cache_key params = {}, the_profile = nil, language = 'en'
  31 + rand
  32 + end
  33 +
29 34 def can_display_hits?
30 35 false
31 36 end
... ...