Skip to content

Instantly share code, notes, and snippets.

@fleeting
Created February 3, 2010 17:35
Show Gist options
  • Save fleeting/293810 to your computer and use it in GitHub Desktop.
Save fleeting/293810 to your computer and use it in GitHub Desktop.
<?php
# WP SUPER CACHE 0.8.9.1
function wpcache_broken_message() {
if ( false == strpos( $_SERVER[ 'REQUEST_URI' ], 'wp-admin' ) )
echo "<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->";
}
if ( !include_once( '/var/www/wp-content/plugins/wp-super-cache/' . 'wp-cache-phase1.php' ) ) {
if ( !@is_file( '/var/www/wp-content/plugins/wp-super-cache/' . 'wp-cache-phase1.php' ) )
register_shutdown_function( 'wpcache_broken_message' );
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment