This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if isset( $_COOKIE[ 'wordpress_logged_in_'] ){ | |
define ('DONOTCACHEPAGE', true); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function zarza_custom_clear_cache(){ | |
$ch = curl_init("https://192.198.89.58"); | |
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'PURGE'); | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); | |
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); | |
$output = curl_exec($ch); | |
$status = curl_getinfo($ch, CURLINFO_HTTP_CODE); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( 'admin_init', 'remove_rocket_plugin_notice' ); | |
function remove_rocket_plugin_notice() { | |
remove_action( 'admin_notices', 'rocket_warning_plugin_modification' ); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
defined( 'ABSPATH' ) or die( 'Cheatin\' uh?' ); | |
/* | |
Plugin Name: Add all images to CDN | |
Author: Jonathan (WP Rocket Team) | |
Author URI: http://wp-rocket.me | |
*/ | |
add_filter( 'rocket_buffer', 'rocket_cdn_images', PHP_INT_MAX ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
defined( 'ABSPATH' ) or die( 'Cheatin\' uh?' ); | |
/* | |
Plugin Name: Fix html minify | |
Author: Jonathan (WP Rocket Team) | |
Author URI: http://wp-rocket.me | |
*/ | |
add_filter('rocket_minify_html_options', '__return_empty_array'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
defined( 'ABSPATH' ) or die( 'Cheatin\' uh?' ); | |
/* | |
Plugin Name: Disable GZip | |
Author: Jean-Baptiste (WP Rocket Team) | |
Author URI: http://wp-rocket.me | |
*/ | |
add_filter( 'rocket_htaccess_mod_deflate', '__return_false' ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'wp', '__deactivate_rocket_lazyload_if_home' ); | |
function __deactivate_rocket_lazyload_if_home() | |
{ | |
if( is_home() || is_front_page() ) { | |
add_filter( 'do_rocket_lazyload', '__return_false' ); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
zlib.output_compression = true | |
zlib.output_compression_level = 9 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
defined( 'ABSPATH' ) or die( 'Cheatin\' uh?' ); | |
/* | |
Plugin Name: Use PHP Cache with WP Rocket | |
Author: Jean-Baptiste (WP Rocket Team) | |
Author URI: http://wp-rocket.me | |
*/ | |
add_filter( 'rocket_htaccess_mod_rewrite', '__return_false' ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'wp', '__deactivate_rocket_lazyload_if_home' ); | |
function __deactivate_rocket_lazyload_if_home() | |
{ | |
if( is_home() || is_front_page() ) { | |
add_filter( 'do_rocket_lazyload', '__return_false' ); | |
} |