ID, Cache_Rules::META_NO_CACHE, true ); $expiry = (int) get_post_meta( $post->ID, Cache_Rules::META_EXPIRY_HOURS, true ); ?>


ID ) ) { return; } ?>

post_type, Cache_Rules::supported_post_types(), true ) ) { return; } $no_cache = ! empty( $_POST['xspeed_no_cache'] ); if ( $no_cache ) { update_post_meta( $post_id, Cache_Rules::META_NO_CACHE, true ); } else { delete_post_meta( $post_id, Cache_Rules::META_NO_CACHE ); } $expiry = isset( $_POST['xspeed_expiry_hours'] ) ? (int) $_POST['xspeed_expiry_hours'] : 0; $expiry = max( 0, min( 720, $expiry ) ); if ( $expiry > 0 ) { update_post_meta( $post_id, Cache_Rules::META_EXPIRY_HOURS, $expiry ); } else { delete_post_meta( $post_id, Cache_Rules::META_EXPIRY_HOURS ); } } }