Skip to content

Commit

Permalink
rex_delete_cache: rex_config nicht neu laden (#1827)
Browse files Browse the repository at this point in the history
stattdessen nur im Backup-Addon direkt neu laden
  • Loading branch information
gharlan committed Jun 14, 2018
1 parent 431a3e7 commit 7716feb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 3 additions & 0 deletions redaxo/src/addons/backup/lib/backup.php
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,9 @@ public static function importDb($filename)
// delete cache before EP to avoid obsolete caches while running extensions
rex_delete_cache();

// refresh rex_config with new values from database
rex_config::refresh();

// ----- EXTENSION POINT
$msg = rex_extension::registerPoint(new rex_extension_point('BACKUP_AFTER_DB_IMPORT', $msg, [
'content' => $conts,
Expand Down
4 changes: 0 additions & 4 deletions redaxo/src/core/functions/function_rex_other.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@ function rex_delete_cache()

rex_clang::reset();

if (!rex::isSetup()) {
rex_config::refresh();
}

// ----- EXTENSION POINT
return rex_extension::registerPoint(new rex_extension_point('CACHE_DELETED', rex_i18n::msg('delete_cache_message')));
}
Expand Down

0 comments on commit 7716feb

Please sign in to comment.