Silence fopen warnings and check return.
git-svn-id: https://develop.svn.wordpress.org/trunk@3171 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
f086287b81
commit
3b1677473a
@ -282,7 +282,9 @@ class WP_Object_Cache {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Acquire a write lock.
|
// 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);
|
flock($mutex, LOCK_EX);
|
||||||
|
|
||||||
// Loop over dirty objects and save them.
|
// Loop over dirty objects and save them.
|
||||||
|
Loading…
Reference in New Issue
Block a user