updated recomendation section render process

This commit is contained in:
Shreesh Arora
2023-04-13 09:48:56 +05:30
parent 6f1243acb4
commit 9ac34f4ca6
4 changed files with 15 additions and 10 deletions

View File

@@ -242,7 +242,7 @@ class AdminModulesCatalogControllerCore extends AdminController
public function getRecommendationContent()
{
if (!Tools::isFresh(self::CATALOG_RECOMMENDATION_CONTENT, _TIME_1_DAY_)) {
if (!Tools::isFresh(self::CATALOG_RECOMMENDATION_CONTENT, _TIME_1_DAY_, false)) {
@file_put_contents(_PS_ROOT_DIR_.self::CATALOG_RECOMMENDATION_CONTENT, Tools::addonsRequest('catalog-recommendation'));
}
if (file_exists(_PS_ROOT_DIR_.self::CATALOG_RECOMMENDATION_CONTENT)) {