This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/lib/stylesheet
Alan Guo Xiang Tan 6a79864f14 PERF: Cache categories query in Stylesheet::Manager.color_scheme_digest.
The query is being executed each time we try and generate the link path
for a stylesheet within the duration of a reqeust. Categories are not
updated that often so repeating this query multiple times a request is
wasteful.

At the time of this commit, there is a `publish_discourse_stylesheet`
ActiveRecord callback on the `Category` model which clears the cache of
`Stylesheet::Manager` each time a category is saved.
2021-06-02 13:33:31 +08:00
..
compiler.rb DEV: Refactor plugin SCSS compilation (#12359) 2021-03-12 11:17:42 -05:00
functions.rb DEV: Add SCSS helper to replace asset-uri and image-uri (#12664) 2021-04-12 13:57:39 +10:00
importer.rb DEV: Add SCSS helper to replace asset-uri and image-uri (#12664) 2021-04-12 13:57:39 +10:00
manager.rb PERF: Cache categories query in Stylesheet::Manager.color_scheme_digest. 2021-06-02 13:33:31 +08:00
watcher.rb DEV: ensures stylesheet watcher isn't crashing with gems plugins (#12733) 2021-04-16 15:25:20 +02:00