PERF: increase caching of category descriptions

This commit is contained in:
Sam 2015-09-28 16:41:16 +10:00
parent 3b4e52cb36
commit aefedfafea

View file

@ -199,7 +199,7 @@ SQL
def description_text def description_text
return nil unless description return nil unless description
@@cache ||= LruRedux::ThreadSafeCache.new(100) @@cache ||= LruRedux::ThreadSafeCache.new(1000)
@@cache.getset(self.description) do @@cache.getset(self.description) do
Nokogiri::HTML(self.description).text Nokogiri::HTML(self.description).text
end end