https://github.com/pixel-open/magento-sucuri
Add Sucuri API features to Magento: cache management and logs
https://github.com/pixel-open/magento-sucuri
magento2-module sucuri
Last synced: 3 months ago
JSON representation
Add Sucuri API features to Magento: cache management and logs
- Host: GitHub
- URL: https://github.com/pixel-open/magento-sucuri
- Owner: Pixel-Open
- License: mit
- Created: 2025-04-28T21:42:19.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2025-06-06T13:41:13.000Z (4 months ago)
- Last Synced: 2025-06-06T13:43:20.669Z (4 months ago)
- Topics: magento2-module, sucuri
- Language: PHP
- Homepage:
- Size: 55.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# Magento Sucuri
[](https://php.net/)
[](https://business.adobe.com/products/magento/magento-commerce.html)
[](https://github.com/Pixel-Open/magento-sucuri/releases)## Presentation
The module adds Sucuri API features to Magento: cache management and logs.

## Requirements
- Magento >= 2.4.4
- PHP >= 8.0.0## Installation
```
composer require pixelopen/magento-sucuri
```## Configuration
Stores > Configuration > Service > Sucuri
**Multi-Website:** Use the scope config selector to fill API credentials for all websites.
## Clear the Website Firewall cache
### CLI
#### All websites
```shell
bin/magento sucuri:cache:flush
```#### Specific website
```shell
bin/magento sucuri:cache:flush --website_id=1
```### Admin UI
System > Cache Management > Additional Cache Management > Flush Sucuri Cache for X
## Display the audit log entries
System > Sucuri > Logs
**Multi-Website:** Use the scope selector to display requests per website.
## Refresh the log entries
### CLI
#### All websites
```shell
bin/magento sucuri:log:refresh
```#### Specific website
```shell
bin/magento sucuri:log:refresh --website_id=1
```### Admin UI
System > Sucuri > Logs > Refresh
**Multi-Website:** Use the scope selector before refreshing to a specific website.
### Automatically refresh logs every hour
Stores > Configuration > Service > Sucuri > Cron > Refresh Logs
### Log retention
Stores > Configuration > Service > Sucuri > Cron > Log retention (days)