diff --git a/plugin/Cache/Objects/CachesInDB.php b/plugin/Cache/Objects/CachesInDB.php index 17b3d6943097..167a6cadd9e6 100644 --- a/plugin/Cache/Objects/CachesInDB.php +++ b/plugin/Cache/Objects/CachesInDB.php @@ -334,7 +334,7 @@ public static function set_innodb_lock_wait_timeout($timeout = 10) public static function _deleteCacheStartingWith($name) { - if(isBot() && !preg_match('/plugin\/Live\/on_/', $_SERVER['SCRIPT_NAME'])){ + if((isBot() && !isCommandLineInterface()) && !preg_match('/plugin\/Live\/on_/', $_SERVER['SCRIPT_NAME'])){ _error_log("CachesInDB::_deleteCacheStartingWith($name) error line=".__LINE__); return false; }