[wp-cvs] wordpress/wp-content/plugins staticize-reloaded.php, 1.3, 1.4

Matthew Mullenweg saxmatt at users.sourceforge.net
Fri Nov 19 02:18:25 UTC 2004


Update of /cvsroot/cafelog/wordpress/wp-content/plugins
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20796/wp-content/plugins

Modified Files:
	staticize-reloaded.php 
Log Message:
Don't cache pages with DB errors.

Index: staticize-reloaded.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-content/plugins/staticize-reloaded.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** staticize-reloaded.php	6 Oct 2004 06:20:52 -0000	1.3
--- staticize-reloaded.php	19 Nov 2004 02:18:22 -0000	1.4
***************
*** 68,71 ****
--- 68,74 ----
  	endif;
  
+ 	if ( strstr($buffer, 'wpdberror') )
+ 		return $buffer;
+ 
  	$fr = fopen(CACHE_PATH . $staticFileName, 'a');
  	chmod(CACHE_PATH . $staticFileName, 0666);
***************
*** 142,146 ****
  }
  
! if(function_exists('add_action')) {
  	StaticizeInit();
  
--- 145,149 ----
  }
  
! if( function_exists('add_action') ) {
  	StaticizeInit();
  




More information about the cvs mailing list