Guest User

Untitled

a guest
Oct 2nd, 2025
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. function no_cache_meta_homepage() {
  2. if ( is_front_page() || is_home() ) {
  3. echo '<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate">' . "\n";
  4. echo '<meta http-equiv="Pragma" content="no-cache">' . "\n";
  5. echo '<meta http-equiv="Expires" content="0">' . "\n";
  6. }
  7. }
  8. add_action( 'wp_head', 'no_cache_meta_homepage' );
  9.  
Advertisement
Add Comment
Please, Sign In to add comment