hassantafreshi
Forum Replies Created
-
Thank you for the response. We use the following function to handle page caching with plugins. Do you have a structure similar to other plugins that we can add to solve the caching issue?
public function cache_cleaner_Efb($page_id){
if (defined('LSCWP_V') || defined('LSCWP_BASENAME' )){
//litespeed done
do_action( 'litespeed_purge_post', $page_id );
}else if (function_exists('rocket_clean_post')){
//wp-rocket done
$r = rocket_clean_post($page_id);
}elseif (function_exists('wp_cache_post_change')){
//WP Super Cache done
//Jetpack done
$GLOBALS['super_cache_enabled']=1;
wp_cache_post_change($page_id);
}elseif(function_exists('autoptimize_filter_js_noptimize ')){
//auto-Optimize done
autoptimize_filter_js_exclude(['jquery.min-efb.js','core-efb.js']);
autoptimize_filter_js_noptimize();
}elseif(class_exists('WPO_Page_Cache')){
//WP-Optimize done
\WPO_Page_Cache::delete_single_post_cache($page_id);
}elseif(function_exists('w3tc_flush_post')){
//W3 Total Cache done
w3tc_flush_post($page_id);
}elseif(function_exists('wpfc_clear_post_cache_by_id')){
//WP Fastest Cache done
wpfc_clear_post_cache_by_id($page_id);
}elseif(has_action('wphb_clear_page_cache')){
//Hummingbird done
do_action( 'wphb_clear_page_cache', $page_id );
}
}Click here to get the full source code on GitHub..
Thank you.
Forum: Plugins
In reply to: [WP REST Cache] Does This Custom Caching Code Interfere with WP REST Cache?Thank you for the quick response. We use the following function to handle page caching with plugins. Do you have a structure similar to other plugins that we can add to solve the caching issue?
public function cache_cleaner_Efb($page_id){
if (defined('LSCWP_V') || defined('LSCWP_BASENAME' )){
//litespeed done
do_action( 'litespeed_purge_post', $page_id );
}else if (function_exists('rocket_clean_post')){
//wp-rocket done
$r = rocket_clean_post($page_id);
}elseif (function_exists('wp_cache_post_change')){
//WP Super Cache done
//Jetpack done
$GLOBALS['super_cache_enabled']=1;
wp_cache_post_change($page_id);
}elseif(function_exists('autoptimize_filter_js_noptimize ')){
//auto-Optimize done
autoptimize_filter_js_exclude(['jquery.min-efb.js','core-efb.js']);
autoptimize_filter_js_noptimize();
}elseif(class_exists('WPO_Page_Cache')){
//WP-Optimize done
\WPO_Page_Cache::delete_single_post_cache($page_id);
}elseif(function_exists('w3tc_flush_post')){
//W3 Total Cache done
w3tc_flush_post($page_id);
}elseif(function_exists('wpfc_clear_post_cache_by_id')){
//WP Fastest Cache done
wpfc_clear_post_cache_by_id($page_id);
}elseif(has_action('wphb_clear_page_cache')){
//Hummingbird done
do_action( 'wphb_clear_page_cache', $page_id );
}
}Click here to get the full source code on GitHub..
Thank you.
Thank you for the quick response. We use the following function to handle page caching with plugins. Do you have a structure similar to other plugins that we can add to solve the caching issue?
public function cache_cleaner_Efb($page_id){
? ? ? ? if (defined('LSCWP_V') || defined('LSCWP_BASENAME' )){
? ? ? ? ? ? //litespeed done ? ? ? ? ? ?
? ? ? ? ? ? do_action( 'litespeed_purge_post', $page_id );
? ? ? ? }else if (function_exists('rocket_clean_post')){
? ? ? ? ? ? //wp-rocket done ? ? ? ? ? ? ? ? ? ?
? ? ? ? ? ? $r = rocket_clean_post($page_id); ? ? ? ? ?
? ? ? ? }elseif (function_exists('wp_cache_post_change')){
? ? ? ? ? ? //WP Super Cache done ? ? ? ? ?
? ? ? ? ? ? //Jetpack done
? ? ? ? ? ? $GLOBALS['super_cache_enabled']=1;
? ? ? ? ? ? wp_cache_post_change($page_id);
? ? ? ? }elseif(function_exists('autoptimize_filter_js_noptimize ')){
? ? ? ? ? ? //auto-Optimize done
? ? ? ? ? ? autoptimize_filter_js_exclude(['jquery.min-efb.js','core-efb.js']);
? ? ? ? ? ? autoptimize_filter_js_noptimize();
? ? ? ? }elseif(class_exists('WPO_Page_Cache')){
? ? ? ? ? ? //WP-Optimize done
? ? ? ? ? ? \WPO_Page_Cache::delete_single_post_cache($page_id);
? ? ? ? }elseif(function_exists('w3tc_flush_post')){
? ? ? ? ? ? //W3 Total Cache done ? ? ? ? ?
? ? ? ? ? ? w3tc_flush_post($page_id);
? ? ? ? }elseif(function_exists('wpfc_clear_post_cache_by_id')){
? ? ? ? ? ? //WP Fastest Cache done
? ? ? ? ? ? wpfc_clear_post_cache_by_id($page_id);
? ? ? ? }elseif(has_action('wphb_clear_page_cache')){
? ? ? ? ? ? //Hummingbird done ? ? ? ? ?
? ? ? ? ? ? do_action( 'wphb_clear_page_cache', $page_id );
? ? ? ? }
? ? }Click here for get full source code on GitHub.
Thank you.
Hello @daniellaivanova ,
Thank you for your quick and comprehensive response.Forum: Plugins
In reply to: [WP Super Cache] Custom Caching Code Compatibility with WP Super CacheHi,
Thank you for your quick and comprehensive response.@happyaxident Thank you for comprehensive response.
Hi,
Thank you for your quick and comprehensive response.Forum: Plugins
In reply to: [LiteSpeed Cache] Does This Custom Caching Code Conflict with LiteSpeed CacheThank you for your quick and comprehensive response.
Thank you for your quick and comprehensive response. Yes, we have already added the function to clear the page cache in the relevant section.
Thank you for your explanation. We have not conducted any tests yet and are sending this message to consider various possibilities with the development version. We want to understand how it might potentially conflict with your plugin.
Forum: Plugins
In reply to: [LiteSpeed Cache] Does This Custom Caching Code Conflict with LiteSpeed Cache@litetim Thank you for your detailed response. If the user disables the LSC Object cache option, will the functionality of our function be affected, or will it only stop the caching operations performed by WordPress?
Thank you for your response and review. To facilitate a more thorough examination, please conduct the test on the version available on GitHub at the following link.
https://github.com/hassantafreshi/easy-form-builder/tree/dev4
We have communicated with cache plugin developers prior to release to prevent any potential issues. The get_efbFunction is also called when the form is published, and if it causes any problems, it will be with the cache plugin on public pages. My final question is: Does your plugin make any changes or oversee the functionality of the wp_cache_set function that could potentially cause conflicts?
Thank you.
Forum: Plugins
In reply to: [Autoptimize] Does This Custom Caching Code Conflict with AutoptimizeThank you for your guidance and prompt response.
Thank you for your quick response. The class that we intend to cache does not contain any nonces, CSS, or JavaScript files. Our goal is to use
wp_cache_get
andwp_cache_set
to cache this class in the Easy Form Builder plugin. This frequently used function, which is called multiple times, will be moved to the cache to enhance the plugin’s performance. Does your plugin monitor or control the performance ofwp_cache_get
andwp_cache_set
in any way?Thank you.
Forum: Plugins
In reply to: [W3 Total Cache] Custom Caching Code Compatibility with W3 Total CacheThank you for your prompt response. We haven’t conducted any tests yet, but we have a question regarding the development of a new feature for the next version of Easy Form Builder that we are planning to release. We aim to improve the performance of the plugin by caching a frequently used class, which includes functions and a list of all translated texts, using the
wp_cache_get
andwp_cache_set
functions. This class does not contain any nonce, JavaScript, or CSS files. Our goal with caching is to reduce the execution time and repeated calls to this class. Does your plugin have any specific monitoring or interactions with these functions and their operations?
Thank you