# How to Update or Refresh a Module

### PUQcloud Panel

##### [Order Now](https://puqcloud.com/puqcloud-panel.php) | [Download](https://download.puqcloud.com/PUQcloud/) | [FAQ](https://faq.puqcloud.com/)

- - - - - -

#### Overview

The **Refresh (Update)** button allows you to safely upgrade or downgrade a module version.  
This function ensures all database tables and settings are synchronized with the new configuration file.

- - - - - -

##### When to Use Refresh

- When the module’s version number in the configuration file changes.
- When the module stops appearing in the list after updating its files.
- When switching to an older version (downgrade).

- - - - - -

##### Steps to Update a Module

1. Replace the module files with the new (or old) version.
2. Go to **Dashboard → Modules**.
3. Click the **blue Refresh (🔄)** button next to the affected module.
4. The system runs the `Update` function, which:
    
    
    - Compares installed and config versions.
    - Updates database structure and settings.
    - Re-registers the module in the system.

- - - - - -

##### Result

The module becomes visible and active again under the correct version.  
This process ensures safe, **controlled updates** without breaking dependencies.

- - - - - -

##### Example

[![2025-10-24_15-43.png](https://doc.puq.info/uploads/images/gallery/2025-10/scaled-1680-/2025-10-24-15-43.png)](https://doc.puq.info/uploads/images/gallery/2025-10/2025-10-24-15-43.png)