mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-30 16:17:56 +02:00
Don't flush if cache is disabled.
git-svn-id: http://svn.automattic.com/wordpress/trunk@3110 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d0bb17a2f3
commit
64567c90f4
@ -91,6 +91,9 @@ class WP_Object_Cache {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function flush() {
|
function flush() {
|
||||||
|
if ( !$this->cache_enabled )
|
||||||
|
return;
|
||||||
|
|
||||||
$this->rm($this->cache_dir.'*');
|
$this->rm($this->cache_dir.'*');
|
||||||
$this->cache = array ();
|
$this->cache = array ();
|
||||||
$this->dirty_objects = array ();
|
$this->dirty_objects = array ();
|
||||||
|
Loading…
Reference in New Issue
Block a user