mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
PERF: increase caching of category descriptions
This commit is contained in:
parent
3b4e52cb36
commit
aefedfafea
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue