From 0881f612555fcf05ae28d84624fbcca9ea5da627 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Thu, 16 Aug 2018 08:40:25 +0800 Subject: [PATCH] UpdateDatabase.php --- UpdateDatabase.php | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/UpdateDatabase.php b/UpdateDatabase.php index c0020faa..2796d4ae 100644 --- a/UpdateDatabase.php +++ b/UpdateDatabase.php @@ -1193,9 +1193,8 @@ class Pman_Core_UpdateDatabase extends Pman // this needs to clear it's own cache along with remote one.. - $url = "http://localhost{$this->local_base_url}/Core/RefreshDatabaseCache"; - $response = $this->curl($url); + $response = $this->curl("http://localhost{$this->local_base_url}/Core/RefreshDatabaseCache"); $json = json_decode($response, true); @@ -1210,14 +1209,11 @@ class Pman_Core_UpdateDatabase extends Pman function clearApacheAssetCache() { - $a = new Pman(); - $mods = $a->modulesList(); - $url = "http://localhost{$this->local_base_url}/Core/Asset"; - $response = $this->curl($url, array( - '_clear_cache' => 1, - - )); + $response = $this->curl( + "http://localhost{$this->local_base_url}/Core/Asset", + array( '_clear_cache' => 1 ) + ); $json = json_decode($response, true); if(empty($json['success']) || !$json['success']) { -- 2.39.2