fy the duration for which data is stored in the cache. Elements caching speeds up loading by serving pre-rendered copies of elements, rather than rendering them fresh each time. This control ensures efficient performance and up-to-date content.', 'elementor' ),
],
]
);
}
private function clear_cache_on_site_changed() {
add_action( 'activated_plugin', [ $this, 'clear_cache' ] );
add_action( 'deactivated_plugin', [ $this, 'clear_cache' ] );
add_action( 'switch_theme', [ $this, 'clear_cache' ] );
add_action( 'upgrader_process_complete', [ $this, 'clear_cache' ] );
}
public function clear_cache() {
Plugin::$instance->files_manager->clear_cache();
}
}