Skip to content

Commit

Permalink
Merge pull request #26 from mcspronko/command-error-fix
Browse files Browse the repository at this point in the history
Command error fix and en_US.csv transactions update
  • Loading branch information
mcspronko authored May 10, 2023
2 parents 09b99a0 + f342054 commit a66b763
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 12 deletions.
3 changes: 1 addition & 2 deletions Console/Command/CacheFlushInvalidatedCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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();
}
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -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": [
Expand Down
2 changes: 1 addition & 1 deletion etc/acl.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<resource id="Magento_Backend::tools">
<resource id="Magento_Backend::cache">
<resource id="Magento_Backend::main_actions">
<resource id="Pronko_SelectiveCache::flush_invalidated_cache" title="Flush Invalided Cache" translate="title" sortOrder="30" />
<resource id="Pronko_SelectiveCache::flush_invalidated_cache" title="Flush Invalidated Cache" translate="title" sortOrder="30" />
</resource>
</resource>
</resource>
Expand Down
4 changes: 2 additions & 2 deletions etc/adminhtml/system.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
</field>
<field id="cronjob_clear_invalidated_cache" translate="label tooltip comment" type="text" sortOrder="20" showInDefault="1" showInWebsite="0" showInStore="0">
<label>Set cronjob for clearing invalidated cache types</label>
<comment>Set time for cronjob (for example: * * * * * to run every minute)</comment>
<comment>Set time for cronjob (for example: * * * * * to run every minute)</comment>
</field>
</group>
</section>
</system>
</config>
</config>
2 changes: 1 addition & 1 deletion etc/module.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="Pronko_SelectiveCache" setup_version="0.1.0"/>
<module name="Pronko_SelectiveCache"/>
</config>
12 changes: 7 additions & 5 deletions i18n/en_US.csv
Original file line number Diff line number Diff line change
@@ -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)"

0 comments on commit a66b763

Please sign in to comment.