Showing the changes to libraries/script-engine/src/ScriptEngine.cpp (1 of 4 files). Show all
Unified · Split
| @@ -1942,7 +1942,7 @@ QScriptValue ScriptEngine::require(const QString& moduleId) { · 1941 unmodified lines | ||
| 1942 | 1942 | // to inspect particular entries and invalidate them by deleting the key: |
| 1943 | 1943 | // `delete Script.require.cache[Script.require.resolve(moduleId)];` |
| 1944 | 1944 | |
| 1945 | − // Check to see if | |
| 1945 | + // Check to see if we should invalidate the cache based on a user setting. | |
| 1946 | 1946 | Setting::Handle<bool> getCachebustSetting {"cachebustScriptRequire", false }; |
| 1947 | 1947 | |
| 1948 | 1948 | // cacheMeta is just used right now to tell deleted keys apart from undefined ones |