From: Alan Knowles Date: Mon, 5 Nov 2018 08:16:15 +0000 (+0800) Subject: fixes to errors on clearing cache X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=9261a33282b386b29a533ef4fc520b24b66ad76e fixes to errors on clearing cache --- diff --git a/UpdateDatabase.php b/UpdateDatabase.php index 4fda8da9..2385354e 100644 --- a/UpdateDatabase.php +++ b/UpdateDatabase.php @@ -1264,13 +1264,14 @@ class Pman_Core_UpdateDatabase extends Pman echo "Clearing Database Cache\n"; // this needs to clear it's own cache along with remote one.. - - $response = $this->curl("http://localhost{$this->local_base_url}/Core/RefreshDatabaseCache"); + $url = "http://localhost{$this->local_base_url}/Core/RefreshDatabaseCache"; + $response = $this->curl($url); $json = json_decode($response, true); if(empty($json['data']) || $json['data'] != 'DONE'){ - echo $response. "\n"; + echo "fetching $url\n"; + echo "GOT:" . $response. "\n"; echo "Clear DataObjects Cache failed\n"; exit; } diff --git a/sql/core_domain.sql b/sql/core_domain.sql index c22e29b7..468c975f 100644 --- a/sql/core_domain.sql +++ b/sql/core_domain.sql @@ -3,7 +3,7 @@ CREATE TABLE core_domain ( id int(11) NOT NULL auto_increment, PRIMARY KEY (id) ) ENGINE=innodb DEFAULT CHARSET=utf8 ; --- need to specify engine set, as +-- need to specify engine set, otherwise the unique index get's borked. ALTER TABLE core_domain ADD COLUMN domain VARCHAR(255) NOT NULL DEFAULT '';