forked from OXIDCookbook/ocb_cleartmp
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
3 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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')); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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')); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|