X7ROOT File Manager
Current Path:
/home/gfecatvj/4abetter.us/wp-content/plugins/kubio/lib/filters
home
/
gfecatvj
/
4abetter.us
/
wp-content
/
plugins
/
kubio
/
lib
/
filters
/
📁
..
📄
after-kubio-activation.php
(1.84 KB)
📄
allow-kubio-blog-override.php
(355 B)
📄
cache-plugins.php
(1.05 KB)
📄
default-editor-overlay.php
(4.24 KB)
📄
dismissable-notice.php
(2.73 KB)
📄
gutenerg-plugin-check.php
(936 B)
📄
image-size-auto-fix.php
(399 B)
📄
kubio-fresh-site.php
(785 B)
📄
post-insert.php
(1.21 KB)
📄
register-meta-fields.php
(627 B)
📄
requirements-notices.php
(3.69 KB)
📄
site-urls.php
(2.18 KB)
📄
starter-sites-feature.php
(138 B)
📄
svg-kses.php
(1.18 KB)
📄
wp-import.php
(6.41 KB)
Editing: cache-plugins.php
<?php use Kubio\Core\Utils; function kubio_clean_cache_plugins( $post_id, $post, $update ) { $post_types = array( 'page', 'post', 'wp_template', 'wp_template_part', kubio_global_data_post_type() ); if ( ! $update || $post->post_status !== 'publish' || ! in_array( $post->post_type, $post_types ) ) { return; } try { // WP Super Cache if ( Utils::hasEnoughRemainingTime( 15 ) ) { if ( function_exists( 'wp_cache_clean_cache' ) ) { global $file_prefix; $prefix = ''; if ( $file_prefix ) { $prefix = $file_prefix; } wp_cache_clean_cache( $prefix, true ); } } // Autoptimize if ( Utils::hasEnoughRemainingTime( 15 ) ) { if ( class_exists( 'autoptimizeCache' ) && method_exists( autoptimizeCache::class, 'clearall' ) ) { autoptimizeCache::clearall(); } } // W3 Total Cache if ( Utils::hasEnoughRemainingTime( 15 ) ) { if ( function_exists( 'w3tc_flush_all' ) ) { w3tc_flush_all(); } } } catch ( \Exception $e ) { } } add_action( 'wp_after_insert_post', 'kubio_clean_cache_plugins', 10, 3 );
Upload File
Create Folder