X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=UpdateDatabase.php;h=19c0dd9d33ca49126a60532b651983681c493dd1;hb=c711d090aa2e6f3dc7225ab3df62fd0f2a70217e;hp=2385354e5afd5049a7a2707d71e67d17d7a815c8;hpb=9261a33282b386b29a533ef4fc520b24b66ad76e;p=Pman.Core diff --git a/UpdateDatabase.php b/UpdateDatabase.php index 2385354e..19c0dd9d 100644 --- a/UpdateDatabase.php +++ b/UpdateDatabase.php @@ -90,7 +90,7 @@ class Pman_Core_UpdateDatabase extends Pman ), ); - + static function cli_opts() { @@ -132,8 +132,18 @@ class Pman_Core_UpdateDatabase extends Pman 'test_class' => 'Pman/Admin/Report/SendEventErrors', 'to_group' => 'Administrators', 'active' => 1, - 'description' => '9. System Error Messages', + 'description' => '9.2 System Error Messages', 'template_dir' => '/Pman/Admin/templates/mail/' + ), + 'ADMIN_PASSWORD_RESET' => array( + 'bcc_group' => 'Administrators', + 'test_class' => 'Pman/Core/DataObjects/Core_person', + 'to_group' => '', + 'active' => 1, + 'description' => '9.1 Management System Password Reset', + 'template_dir' => '/Pman/Core/templates/mail/' + + ) ); @@ -253,6 +263,12 @@ class Pman_Core_UpdateDatabase extends Pman $this->clearApacheDataobjectsCache(); $this->clearApacheAssetCache(); + + + + + + } function output() { @@ -1261,10 +1277,13 @@ class Pman_Core_UpdateDatabase extends Pman function clearApacheDataobjectsCache() { - echo "Clearing Database Cache\n"; + // this needs to clear it's own cache along with remote one.. $url = "http://localhost{$this->local_base_url}/Core/RefreshDatabaseCache"; + + echo "Clearing Database Cache : http://localhost{$this->local_base_url}/Core/RefreshDatabaseCache\n"; + $response = $this->curl($url); $json = json_decode($response, true); @@ -1281,7 +1300,7 @@ class Pman_Core_UpdateDatabase extends Pman function clearApacheAssetCache() { - echo "Clearing Asset Cache\n"; + echo "Clearing Asset Cache : http://localhost{$this->local_base_url}/Core/Asset\n"; $response = $this->curl( "http://localhost{$this->local_base_url}/Core/Asset", array( '_clear_cache' => 1 ,'returnHTML' => 'NO' ),