From c0932a6e6807710e4189d51a72856ad17794a65a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kasper=20Garn=C3=A6s?= Date: Wed, 15 Jan 2025 10:14:39 +0100 Subject: [PATCH] Add and enable purge queues module The purge queues module uses an alternate database table name and structure. Due to problems with Azure MariaDB we are seeing tables missing and but without being able to recreate them due to tablespaces exists. Using Purge Queues allows us a clean solution to using a separate table name and the potential of optimizing purge queue usage by ensuring unique entries. --- composer.json | 1 + composer.lock | 48 ++++++++++++++++++- config/sync/core.extension.yml | 1 + .../custom/dpl_update/dpl_update.install | 7 +++ 4 files changed, 56 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index d0419ad6fe..1bcb920d55 100644 --- a/composer.json +++ b/composer.json @@ -154,6 +154,7 @@ "drupal/pathauto": "^1.12", "drupal/potion": "dev-2.x#e48d6ee336d960b9d2efb5d88e68402db6d229a6", "drupal/purge": "^3.6", + "drupal/purge_queues": "^2.1", "drupal/recurring_events": "^2", "drupal/redirect": "^1.9", "drupal/redis": "^1.7", diff --git a/composer.lock b/composer.lock index dd43987949..36b8ab64ee 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "978021ff34ea829e058bee55c64f9063", + "content-hash": "eb4cc14c08967a72e0f01c0a74896f55", "packages": [ { "name": "amazeeio/drupal_integrations", @@ -6767,6 +6767,52 @@ "source": "https://git.drupalcode.org/project/purge" } }, + { + "name": "drupal/purge_queues", + "version": "2.1.0", + "source": { + "type": "git", + "url": "https://git.drupalcode.org/project/purge_queues.git", + "reference": "2.1.0" + }, + "dist": { + "type": "zip", + "url": "https://ftp.drupal.org/files/projects/purge_queues-2.1.0.zip", + "reference": "2.1.0", + "shasum": "02a193a18ea19f8cc409df75540c33462fcb14ec" + }, + "require": { + "drupal/core": "^8 || ^9 || ^10 || ^11", + "drupal/purge": "^3", + "php": ">=7.2" + }, + "type": "drupal-module", + "extra": { + "drupal": { + "version": "2.1.0", + "datestamp": "1726397620", + "security-coverage": { + "status": "covered", + "message": "Covered by Drupal's security advisory policy" + } + } + }, + "notification-url": "https://packages.drupal.org/8/downloads", + "license": [ + "GPL-2.0-or-later" + ], + "authors": [ + { + "name": "Jonathan AraƱa Cruz", + "homepage": "https://www.drupal.org/user/49817" + } + ], + "description": "Provides extra purge queue plugins.", + "homepage": "https://www.drupal.org/project/purge_queues", + "support": { + "source": "https://git.drupalcode.org/project/purge_queues" + } + }, { "name": "drupal/recurring_events", "version": "2.0.2", diff --git a/config/sync/core.extension.yml b/config/sync/core.extension.yml index 90aff70886..f6d21f12aa 100644 --- a/config/sync/core.extension.yml +++ b/config/sync/core.extension.yml @@ -151,6 +151,7 @@ module: purge_processor_cron: 0 purge_processor_lateruntime: 0 purge_queuer_coretags: 0 + purge_queues: 0 purge_tokens: 0 recurring_events: 0 redirect: 0 diff --git a/web/modules/custom/dpl_update/dpl_update.install b/web/modules/custom/dpl_update/dpl_update.install index 1b0bbc3afc..326442ad69 100644 --- a/web/modules/custom/dpl_update/dpl_update.install +++ b/web/modules/custom/dpl_update/dpl_update.install @@ -360,3 +360,10 @@ function dpl_update_update_10030(): string { function dpl_update_update_10031(): string { return _dpl_update_install_modules(['simple_sitemap']); } + +/** + * Installing purge queues. + */ +function dpl_update_update_10032(): string { + return _dpl_update_install_modules(['purge_queues']); +}