Skip to content

Commit

Permalink
поправил очистку кеша
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitriitux committed May 31, 2023
1 parent 3bafabe commit b8f64b9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
7 changes: 5 additions & 2 deletions installer/sovmart.php
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,9 @@ protected function methodSavetoken()
throw new RuntimeException(Text::_('PLG_INSTALLER_SOVMART_ERROR_DATABASE_SAVE'), 500);
}

$this->cleanCache('com_plugins');
$this->cleanCache('com_plugins', 1);

return ['status' => 'ok'];
}

Expand Down Expand Up @@ -456,8 +459,8 @@ protected function methodSavetoken()
}

// очистка кеша, так как джумла кеширует параметры плагинов и компонентов, чтобы обновился токен надо кеш сбросить
$this->cleanCache('_system');
$this->cleanCache('_system', 1);
$this->cleanCache('com_plugins');
$this->cleanCache('com_plugins', 1);

return ['status' => 'ok'];

Expand Down
2 changes: 1 addition & 1 deletion installer/sovmart.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<license>GNU General Public License version 3; see LICENSE.txt</license>
<authorEmail>cymbal@delo-design.ru</authorEmail>
<authorUrl>https://delo-design.ru</authorUrl>
<version>1.6.4</version>
<version>1.6.5</version>
<description>PLG_INSTALLER_SOVMART_PLUGIN_XML_DESCRIPTION</description>
<scriptfile>script.php</scriptfile>

Expand Down
2 changes: 1 addition & 1 deletion pkg_sovmart.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<license>GNU General Public License version 3; see LICENSE.txt</license>
<authorEmail>cymbal@delo-design.ru</authorEmail>
<authorUrl>https://delo-deisgn.ru</authorUrl>
<version>1.6.4</version>
<version>1.6.5</version>
<scriptfile>script.php</scriptfile>
<description>PKG_SOVMART_XML_DESCRIPTION</description>
<languages folder="language">
Expand Down

0 comments on commit b8f64b9

Please sign in to comment.