From d3297ea877844ad31433246502fa55df6a6749bd Mon Sep 17 00:00:00 2001 From: saxmatt Date: Thu, 25 Nov 2004 19:09:49 +0000 Subject: [PATCH] Try not to cache if the page doesn't finish, updated link. git-svn-id: http://svn.automattic.com/wordpress/trunk@1883 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-content/plugins/staticize-reloaded.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/wp-content/plugins/staticize-reloaded.php b/wp-content/plugins/staticize-reloaded.php index 38ba06f1e..9c032679b 100644 --- a/wp-content/plugins/staticize-reloaded.php +++ b/wp-content/plugins/staticize-reloaded.php @@ -2,7 +2,7 @@ /* Plugin Name: Staticize Reloaded Version: 2.5 -Plugin URI: http://www.cowpimp.com/archives/2004/06/08/staticize-plugin-for-wordpress/ +Plugin URI: http://codex.wordpress.org/Plugins/Staticize Description: Automatic Generation of static files. Cuts down on php and mysql usage. Should automatically update when changes are made to site. Original by Bill Zeller. Author: Matt Mullenweg Author URI: http://photomatt.net/ @@ -67,7 +67,10 @@ function StaticizeCallback($buffer) { return $buffer; endif; - if ( strstr($buffer, 'wpdberror') ) + if ( strstr($buffer, 'wpdberror') ) // If we detect a $wpdb error + return $buffer; + + if ( !strstr($buffer, '') ) // If we don't get to the end of the page return $buffer; $fr = fopen(CACHE_PATH . $staticFileName, 'a');