# searchpro/4.0.27/api/clear_cache.php

BerqWP – All-In-One Optimization for Core Web Vitals, Cache, CDN, Images, CSS &amp; JavaScript, version 4.0.27. 12 lines.

- Page: https://pluginprobe.com/plugins/searchpro/4.0.27/code/api/clear_cache.php
- Raw: https://pluginprobe.com/plugins/searchpro/4.0.27/raw/api/clear_cache.php
- Modified: 2024-04-29T08:43:00+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/searchpro/4.0.27/code/api/clear_cache.php#L10-L20`.

```php
<?php
if (!defined('ABSPATH')) exit;

if (!class_exists('berqCache')) {
    require_once optifer_PATH . '/inc/class-berqcache.php';
}

global $berq_log;
$berq_log->info("Triggered flush cache via API.");

$berqCache = new berqCache();
$berqCache->delete_cache_files();
```
