From de7cfb6ca8eb7a35470de78819efe4489eb1207e Mon Sep 17 00:00:00 2001 From: Daniel Neto Date: Mon, 1 Jul 2024 11:56:41 -0300 Subject: [PATCH] Update --- plugin/Cache/Objects/CachesInDB.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }