... | @@ -10,6 +10,7 @@ function check_plugin_w3tc_state(){ |
... | @@ -10,6 +10,7 @@ function check_plugin_w3tc_state(){ |
|
add_action( 'save_post', 'flush_redis_save_post' );
|
|
add_action( 'save_post', 'flush_redis_save_post' );
|
|
add_action( 'delete_post', 'flush_redis_save_post' );
|
|
add_action( 'delete_post', 'flush_redis_save_post' );
|
|
add_action( 'trash_post', 'flush_redis_save_post' );
|
|
add_action( 'trash_post', 'flush_redis_save_post' );
|
|
|
|
add_action( 'wp_trash_post', 'flush_redis_save_post' );
|
|
function flush_redis_save_post()
|
|
function flush_redis_save_post()
|
|
{
|
|
{
|
|
w3tc_flush_all();
|
|
w3tc_flush_all();
|
... | | ... | |