---
title: "Cum golesc cache-ul în Magento?"
description: "**Magento 1.x — din administrare:** **System → Cache Management → Flush Magento Cache**. **Magento 1.x — prin SSH** (din rădăcină): ``` php -r 'require \"app/Mage.php\"; Mage::app()->getCacheInstance()->flush();' ``` **Magento 2 — din administrare:** **System → Cache Management → Flush Magento Cache**.…"
url: "https://www.hostx.ro/kb/cum-goliti-cache-ul-in-magento/"
updated: "2026-07-25"
category: Programare / Aplicații / Magento
tags:
  - administrare
  - cache
  - Magento 2
  - SSH
---

# Cum golesc cache-ul în Magento?

**Magento 1.x — din administrare:** **System → Cache Management → Flush Magento Cache**.

**Magento 1.x — prin SSH** (din rădăcină):

```
php -r 'require "app/Mage.php"; Mage::app()->getCacheInstance()->flush();'
```

**Magento 2 — din administrare:** **System → Cache Management → Flush Magento Cache**.

**Magento 2 — prin SSH** (din rădăcină):

```
php bin/magento cache:flush
```

Notă: pe stack-ul HostX pentru Magento (Varnish), `cache:flush` golește și cache-ul Varnish (full-page cache), dacă Magento 2 este configurat să folosească Varnish.
