discourse/lib/stylesheet
Alan Guo Xiang Tan 2a4a20ad67
PERF: Avoid running a pointless PG query when theme has no variables. (#13342)
When `Theme#all_theme_variables` returns an empty array, we were running
a pointless query in `StyleSheet::Manager#uploads_digest`.

`SELECT "sha1" FROM "theme_fields" INNER JOIN "uploads" ON
"uploads"."id" = "theme_fields"."upload_id" WHERE 1=0`
2021-06-10 10:50:17 +10: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: Avoid running a pointless PG query when theme has no variables. (#13342) 2021-06-10 10:50:17 +10:00
watcher.rb DEV: ensures stylesheet watcher isn't crashing with gems plugins (#12733) 2021-04-16 15:25:20 +02:00