Advertisement
swte

Untitled

Oct 7th, 2018
388
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.17 KB | None | 0 0
  1. add_action('transition_post_status', function($new, $old, $post){
  2.     Swift_Performance_Cache::clear_post_cache($post->ID);
  3.     Swift_Performance_Cache::clear_cache_after_post();
  4. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement