projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
96178a0
)
UpdateDatabase.php
author
Alan Knowles
<alan@roojs.com>
Thu, 16 Aug 2018 00:40:25 +0000
(08:40 +0800)
committer
Alan Knowles
<alan@roojs.com>
Thu, 16 Aug 2018 00:40:25 +0000
(08:40 +0800)
UpdateDatabase.php
patch
|
blob
|
history
diff --git
a/UpdateDatabase.php
b/UpdateDatabase.php
index
c0020fa
..
2796d4a
100644
(file)
--- 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..
// 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);
$json = json_decode($response, true);
@@
-1210,14
+1209,11
@@
class Pman_Core_UpdateDatabase extends Pman
function clearApacheAssetCache()
{
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']) {
$json = json_decode($response, true);
if(empty($json['success']) || !$json['success']) {