From 7ed899fed97d6b0fe92dba398233f2d143c12129 Mon Sep 17 00:00:00 2001 From: Osama Sayegh Date: Mon, 14 Feb 2022 16:23:06 +0300 Subject: [PATCH] FIX: Ensure theme JavaScript cache get consistent SHA1 digest (#15933) There is a couple of layers of caching for theme JavaScript in Discourse: The first layer is the `javascript_caches` table in the database. When a theme with JavaScript files is installed, Discourse stores each one of the JavaScript files in the `theme_fields` table, and then concatenates the files, compiles them, computes a SHA1 digest of the compiled JavaScript and store the results along with the SHA1 digest in the `javascript_caches` table. Now when a request comes in, we need to render `