# searchpro/4.0.21/inc/thirdparty/plugin/Elementor.php

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

- Page: https://pluginprobe.com/plugins/searchpro/4.0.21/code/inc/thirdparty/plugin/Elementor.php
- Raw: https://pluginprobe.com/plugins/searchpro/4.0.21/raw/inc/thirdparty/plugin/Elementor.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.21/code/inc/thirdparty/plugin/Elementor.php#L10-L20`.

```php
<?php

if (!defined('ABSPATH')) exit;

use BerqWP\BerqWP;

class berqElementor extends berqIntegrations {
    
    function __construct() {
        // add_action( 'elementor/editor/after_save', [$this, 'flush_page_cache'] );
    }

    function flush_page_cache($post_id, $editor_data) {

        $post_url = get_permalink( $post_id );
        berqCache::purge_page($post_url, true);

    }


}

new berqElementor();
```
