# searchpro/1.9.3/api/warmup_cache.php

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

- Page: https://pluginprobe.com/plugins/searchpro/1.9.3/code/api/warmup_cache.php
- Raw: https://pluginprobe.com/plugins/searchpro/1.9.3/raw/api/warmup_cache.php
- Modified: 2024-08-20T18:04:38+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/1.9.3/code/api/warmup_cache.php#L10-L20`.

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

$slug = $request->get_param('slug');
$is_forced = false;

if (!empty($slug) && bwp_can_warmup_cache($slug)) {
    warmup_cache_by_slug($slug, $is_forced);
    return;
}
```
