}
     return Cache::retrieve($cache_id);
 }
 public static function getPrestaProdChildCat($cats)
 {
     foreach ($cats as $cat) {
         if ($cat['id_shop'] == Context::getContext()->shop->id) {
             self::$prestaprds['category_' . $cat['id_category']] = $cat['name'];
         }
         if (isset($cat['children']) && !empty($cat['children'])) {
             self::getPrestaProdChildCat($cat['children']);
         }
     }
 }
 public static function getPrestaProdCat()
 {
     if (method_exists('Category', 'getNestedCategories')) {
         $cats = Category::getNestedCategories(null, (int) Context::getContext()->language->id, true);
     } else {
         $cats = self::getNestedCategories(null, (int) Context::getContext()->language->id, true);