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
This commit is contained in:
Matt Mullenweg 2004-11-25 19:09:49 +00:00
parent 0b62fd613b
commit 6fc5d2939d

View File

@ -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 <a href="http://www.cowpimp.com">Bill Zeller</a>.
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, '</html>') ) // If we don't get to the end of the page
return $buffer;
$fr = fopen(CACHE_PATH . $staticFileName, 'a');