From 87fe0d8180a55059d9bc5ff699283279abc44e8d Mon Sep 17 00:00:00 2001 From: Max Pronko Date: Wed, 10 May 2023 16:59:06 +0100 Subject: [PATCH 1/3] Fixed Command name is empty error --- Console/Command/CacheFlushInvalidatedCommand.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Console/Command/CacheFlushInvalidatedCommand.php b/Console/Command/CacheFlushInvalidatedCommand.php index b65934b..3eba98f 100644 --- a/Console/Command/CacheFlushInvalidatedCommand.php +++ b/Console/Command/CacheFlushInvalidatedCommand.php @@ -36,7 +36,7 @@ class CacheFlushInvalidatedCommand extends Command public function __construct( EventManager $eventManager, DataObjectFactory $dataObjectFactory, - string $name = '' + string $name = 'cache:refresh:invalidated' ) { $this->eventManager = $eventManager; $this->dataObjectFactory = $dataObjectFactory; @@ -48,7 +48,6 @@ public function __construct( */ protected function configure(): void { - $this->setName('cache:refresh:invalidated'); $this->setDescription('Flushes cache storage used by currently invalidated cache type(s)'); parent::configure(); } From 094829be072e2b08926f169fa604e96a52d6f258 Mon Sep 17 00:00:00 2001 From: Max Pronko Date: Wed, 10 May 2023 16:59:27 +0100 Subject: [PATCH 2/3] Removed setup_module attribute --- etc/module.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/module.xml b/etc/module.xml index ef2c633..e1cc32f 100644 --- a/etc/module.xml +++ b/etc/module.xml @@ -6,5 +6,5 @@ */ --> - + From f3420543ea7c4536c6bf0631cc92d657d4ef0dd2 Mon Sep 17 00:00:00 2001 From: Max Pronko Date: Wed, 10 May 2023 17:00:34 +0100 Subject: [PATCH 3/3] Updated en_US transactions and fixed typos --- composer.json | 2 +- etc/acl.xml | 2 +- etc/adminhtml/system.xml | 4 ++-- i18n/en_US.csv | 12 +++++++----- 4 files changed, 11 insertions(+), 9 deletions(-) diff --git a/composer.json b/composer.json index 8dbc258..47821e6 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "pronko/selective-cache", "description": "Selective Cache extension for Magento 2", - "version": "1.2.0", + "version": "1.2.1", "type": "magento2-module", "license": "MIT", "authors": [ diff --git a/etc/acl.xml b/etc/acl.xml index fa04b45..ca1967e 100644 --- a/etc/acl.xml +++ b/etc/acl.xml @@ -8,7 +8,7 @@ - + diff --git a/etc/adminhtml/system.xml b/etc/adminhtml/system.xml index 3125e89..375dccc 100644 --- a/etc/adminhtml/system.xml +++ b/etc/adminhtml/system.xml @@ -16,9 +16,9 @@ - Set time for cronjob (for example: * * * * * to run every minute) + Set time for cronjob (for example: * * * * * to run every minute) - \ No newline at end of file + diff --git a/i18n/en_US.csv b/i18n/en_US.csv index fd1a326..7593007 100644 --- a/i18n/en_US.csv +++ b/i18n/en_US.csv @@ -1,10 +1,12 @@ "The following cache types have been successfully cleaned: %1","The following cache types have been successfully cleaned: %1" "There are no invalidated cache types to be cleaned.","There are no invalidated cache types to be cleaned." -"Refresh Invalidated Cache","Refresh Invalidated Cache" +"Cache types cleared automatically: %1","Cache types cleared automatically: %1" +"Flush Invalidated Cache","Flush Invalidated Cache" "Additionally you can %1 directly.","Additionally you can %1 directly." -"Flush Invalidaded Cache","Flush Invalided Cache" -"Following cache types were automatically cleared: ","Following cache types were automatically cleared: " -"Set cronjob for clearing invalidated cache types","Set cronjob for clearing invalidated cache types" -"Set time for cronjob (for example: * * * * * to run every minute)","Set time for cronjob (for example: * * * * * to run every minute)" +"Refresh Invalidated Cache","Refresh Invalidated Cache" +Pronko,Pronko +"Selective Cache","Selective Cache" "Configure Cronjob","Configure Cronjob" "Enable Cronjob","Enable Cronjob" +"Set cronjob for clearing invalidated cache types","Set cronjob for clearing invalidated cache types" +"Set time for cronjob (for example: * * * * * to run every minute)","Set time for cronjob (for example: * * * * * to run every minute)"