mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -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
|
||||
return nil unless description
|
||||
|
||||
@@cache ||= LruRedux::ThreadSafeCache.new(100)
|
||||
@@cache ||= LruRedux::ThreadSafeCache.new(1000)
|
||||
@@cache.getset(self.description) do
|
||||
Nokogiri::HTML(self.description).text
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue