mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 04:40:26 +00:00
Don't cache pages with DB errors.
git-svn-id: https://develop.svn.wordpress.org/trunk@1865 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -67,6 +67,9 @@ function StaticizeCallback($buffer) {
|
||||
return $buffer;
|
||||
endif;
|
||||
|
||||
if ( strstr($buffer, 'wpdberror') )
|
||||
return $buffer;
|
||||
|
||||
$fr = fopen(CACHE_PATH . $staticFileName, 'a');
|
||||
chmod(CACHE_PATH . $staticFileName, 0666);
|
||||
if (!$fr)
|
||||
@@ -141,7 +144,7 @@ function staticize_header() {
|
||||
}
|
||||
}
|
||||
|
||||
if(function_exists('add_action')) {
|
||||
if( function_exists('add_action') ) {
|
||||
StaticizeInit();
|
||||
|
||||
add_action('publish_post', 'postChange', 0);
|
||||
|
||||
Reference in New Issue
Block a user