# searchpro/4.0.24/api/warmup_cache.php

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

- Page: https://pluginprobe.com/plugins/searchpro/4.0.24/code/api/warmup_cache.php
- Raw: https://pluginprobe.com/plugins/searchpro/4.0.24/raw/api/warmup_cache.php
- Modified: 2025-01-27T07:57:28+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.24/code/api/warmup_cache.php#L10-L20`.

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

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

if (!empty($page_url) && bwp_can_warmup_cache($page_url)) {
    warmup_cache_by_url($page_url, $is_forced);
    return;
}
```
