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
This commit is contained in:
saxmatt 2004-11-25 19:09:49 +00:00
parent 03766d3f29
commit d3297ea877
1 changed files with 5 additions and 2 deletions

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');