[wp-hackers] Bizarre /cache/ experience with wp_object_cache.lock

Mark Jaquith mark.wordpress at txfx.net
Sat Feb 4 05:23:51 GMT 2006


On Feb 3, 2006, at 10:20 PM, Ryan Boren wrote:

> David Chait wrote:
>> :) Heh.  I already pointed that out and gave my +1.  Mark's a +2,  
>> you make it a +3.  Go for it!
>
>
> http://trac.wordpress.org/changeset/3504

Lines 407 and 408 are redundant... we don't need to bother checking  
safe mode if we're already disabling it by default

> 403  	        if ( ! defined('ENABLE_CACHE') )
> 404 	            return;
> 405 	
> 406 	        // Disable the persistent cache if safe_mode is on.
> 407 	        if ( ini_get('safe_mode') && ! defined('ENABLE_CACHE') )
> 408                     return;

--
Mark Jaquith
http://txfx.net/




More information about the wp-hackers mailing list