Skip to content

Commit

Permalink
Merge pull request #883 from YGomiero/master
Browse files Browse the repository at this point in the history
Translation: Updated mod_astroid_clear_cache
  • Loading branch information
sonvnn authored Nov 26, 2024
2 parents ff9a19b + 88a8af6 commit 0da97c4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 2 additions & 2 deletions js/mod_astroid_clear_cache/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ jQuery(function($){
},
success: function (response) {
if (response.status === 'success') {
$.notify("Astroid Cache Cleared.", "success");
$.notify(Joomla.JText._('MOD_ASTROID_SYSTEM_MESSAGES_CACHE'), "success");
$.ajax({
url: "index.php?option=com_ajax&astroid=clear-joomla-cache",
success: function (response) {
if (response.status === 'success') {
$.notify("Joomla Cache Cleared.", "success");
$.notify(Joomla.JText._('MOD_ASTROID_MESSAGE_JOOMLA_CACHE'), "success");
$this.find('.icon-refresh').removeClass('icon-spin');
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
MOD_ASTROID_CLEAR_CACHE="Astroid Clear Cache"
MOD_ASTROID_CLEAR_CACHE_XML_DESCRIPTION="This module shows a link to clear all Astroid Cache and Joomla Cache."
ASTROID_CLEAR_CACHE="Astroid Clear Cache"
ASTROID_SHORTCUT_CACHE_DESC="Clear the Joomla and Astroid Cache"
ASTROID_SHORTCUT_CACHE_DESC="Clear the Joomla and Astroid Cache"
MOD_ASTROID_SYSTEM_MESSAGES_CACHE="Astroid Cache Cleared."
MOD_ASTROID_MESSAGE_JOOMLA_CACHE="Joomla Cache Cleared."
4 changes: 4 additions & 0 deletions modules/mod_astroid_clear_cache/mod_astroid_clear_cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@

use Joomla\CMS\Extension\ExtensionHelper;
use Joomla\CMS\Helper\ModuleHelper;
use Joomla\CMS\Language\Text;

Text::script('MOD_ASTROID_SYSTEM_MESSAGES_CACHE');
Text::script('MOD_ASTROID_MESSAGE_JOOMLA_CACHE');

$joomlaFilesExtensionId = ExtensionHelper::getExtensionRecord('joomla', 'file')->extension_id;
$wa = $app->getDocument()->getWebAssetManager();
Expand Down

0 comments on commit 0da97c4

Please sign in to comment.