Skip to content

Commit

Permalink
feat: clear cache after update elementor kit (#98)
Browse files Browse the repository at this point in the history
Co-authored-by: Ashesh Magar <[email protected]>
  • Loading branch information
asmitaneupane and asheshmagar authored Aug 16, 2024
1 parent 45831fb commit e5ffa0a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions includes/functions-demo-importer.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
* @version 1.0.0
*/

use Elementor\Plugin;

defined( 'ABSPATH' ) || exit;

// Include core functions (available in both admin and frontend).
Expand Down Expand Up @@ -289,6 +291,7 @@ function ( $post ) {

if ( $found ) {
update_option( 'elementor_active_kit', $found );
Plugin::$instance->files_manager->clear_cache();
}
}
}
Expand Down

0 comments on commit e5ffa0a

Please sign in to comment.