Skip to content

Commit

Permalink
2.0.4 / fix clear in dev-mode
Browse files Browse the repository at this point in the history
  • Loading branch information
tabsl committed Feb 21, 2018
1 parent 61f655b commit 539bc01
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Controller/Admin/NavigationController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
/**
* @package ocb_cleartmp
* @category OXID Module
* @version 2.0.2
* @license GNU License http://opensource.org/licenses/GNU
* @author Joscha Krug <[email protected]> / OXID Community
* @link https://github.com/OXIDprojects/ocb_cleartmp
Expand Down Expand Up @@ -164,6 +163,7 @@ public function deleteFiles()
$aFiles = array_merge($aFiles, glob($sTmpDir . '/*tbdsc*.txt'));
break;
case 'complete':
\OxidEsales\Eshop\Core\Registry::getUtils()->resetLanguageCache();
$aFiles = glob($sTmpDir . '/*.txt');
$aFiles = array_merge($aFiles, glob($sTmpDir . '/*.php'));
$aFiles = array_merge($aFiles, glob($sTmpDir . '/smarty/*.php'));
Expand Down
2 changes: 1 addition & 1 deletion Core/ShopControl.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
/**
* @package ocb_cleartmp
* @category OXID Module
* @version 2.0.2
* @license GNU License http://opensource.org/licenses/GNU
* @author Joscha Krug <[email protected]> / OXID Community
* @link https://github.com/OXIDprojects/ocb_cleartmp
Expand All @@ -25,6 +24,7 @@ protected function _runOnce()
$ocbcleartmpDevMode = $config->getShopConfVar('ocbcleartmpDevMode', \OxidEsales\Eshop\Core\Registry::getConfig()->getShopId(), 'module:ocb_cleartmp');

if ($ocbcleartmpDevMode && !$config->isProductiveMode()) {
\OxidEsales\Eshop\Core\Registry::getUtils()->resetLanguageCache();
$tmpDirectory = realpath($config->getShopConfVar('sCompileDir'));
$aFiles = glob($tmpDirectory . '/smarty/*.php');
$aFiles = array_merge($aFiles, glob($tmpDirectory . '/ocb_cache/*.json'));
Expand Down
2 changes: 1 addition & 1 deletion metadata.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
'title' => 'OXID Community Cleartmp (by OXID Cookbook)',
'description' => 'Clear the tmp directory from the backend.',
'thumbnail' => 'cookbook.jpg',
'version' => '2.0.2',
'version' => '2.0.4',
'author' => 'OXID Community',
'url' => 'https://github.com/OXIDprojects/ocb_cleartmp',
'email' => '',
Expand Down
1 change: 0 additions & 1 deletion views/admin/de/module_options.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
/**
* @package ocb_cleartmp
* @category OXID Module
* @version 2.0.2
* @license GNU License http://opensource.org/licenses/GNU
* @author Joscha Krug <[email protected]> / OXID Community
* @link https://github.com/OXIDprojects/ocb_cleartmp
Expand Down
1 change: 0 additions & 1 deletion views/admin/de/ocbcleartmp_lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
/**
* @package ocb_cleartmp
* @category OXID Module
* @version 2.0.2
* @license GNU License http://opensource.org/licenses/GNU
* @author Joscha Krug <[email protected]> / OXID Community
* @link https://github.com/OXIDprojects/ocb_cleartmp
Expand Down
1 change: 0 additions & 1 deletion views/admin/en/module_options.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
/**
* @package ocb_cleartmp
* @category OXID Module
* @version 2.0.2
* @license GNU License http://opensource.org/licenses/GNU
* @author Joscha Krug <[email protected]> / OXID Community
* @link https://github.com/OXIDprojects/ocb_cleartmp
Expand Down
1 change: 0 additions & 1 deletion views/admin/en/ocbcleartmp_lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
/**
* @package ocb_cleartmp
* @category OXID Module
* @version 2.0.2
* @license GNU License http://opensource.org/licenses/GNU
* @author Joscha Krug <[email protected]> / OXID Community
* @link https://github.com/OXIDprojects/ocb_cleartmp
Expand Down

0 comments on commit 539bc01

Please sign in to comment.