Removed request queue enablement flag (#20466)

refs
[CFR-26](https://linear.app/tryghost/issue/CFR-26/remove-request-queue-config-flag)

Removed request queue enablement flag and updated the logic so that the
request queue is enabled when there is explicit configuration for it.
This commit is contained in:
Michael Barrett 2024-06-27 09:30:07 +01:00 committed by GitHub
parent aa0110c842
commit ecf52d4685
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -29,7 +29,7 @@ module.exports = function setupParentApp() {
// Enable request queuing if configured
const queueConfig = config.get('optimization:requestQueue');
if (queueConfig?.enabled === true) {
if (queueConfig) {
parentApp.use(mw.queueRequest(queueConfig));
}