From 6fc5d2939d858a58b457e31f5cf26afe96fd2af8 Mon Sep 17 00:00:00 2001 From: Matt Mullenweg 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: https://develop.svn.wordpress.org/trunk@1883 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 38ba06f1ed..9c032679b1 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');