diff --git a/wp-includes/cache.php b/wp-includes/cache.php index aacf3016e9..b113cc4723 100644 --- a/wp-includes/cache.php +++ b/wp-includes/cache.php @@ -282,7 +282,9 @@ class WP_Object_Cache { } // Acquire a write lock. - $mutex = fopen($this->cache_dir.$this->flock_filename, 'w'); + $mutex = @fopen($this->cache_dir.$this->flock_filename, 'w'); + if ( false == $mutex) + return; flock($mutex, LOCK_EX); // Loop over dirty objects and save them.