From a1cf8d462f1c0e599d1d0bc3478b9f4d5c384331 Mon Sep 17 00:00:00 2001 From: Damien Metzger Date: Tue, 6 Aug 2013 16:42:10 +0200 Subject: [PATCH] // Keep remote file retrieval in the right order --- classes/controller/AdminController.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/classes/controller/AdminController.php b/classes/controller/AdminController.php index cf12984dd..e36804246 100644 --- a/classes/controller/AdminController.php +++ b/classes/controller/AdminController.php @@ -1509,6 +1509,8 @@ class AdminControllerCore extends Controller */ protected function initTabModuleList() { + if (!$this->isFresh(Module::CACHE_FILE_MUST_HAVE_MODULES_LIST, 86400)) + @file_put_contents(_PS_ROOT_DIR_.Module::CACHE_FILE_MUST_HAVE_MODULES_LIST, Tools::addonsRequest('must-have')); if (!$this->isFresh(Module::CACHE_FILE_TAB_MODULES_LIST, 604800)) $this->refresh(Module::CACHE_FILE_TAB_MODULES_LIST, 'http://'.Tab::TAB_MODULE_LIST_URL);