X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=blobdiff_plain;f=RefreshDatabaseCache.php;h=2994e1bfeaa552f33dc4fce4376a938cc7f15895;hp=8b137891791fe96927ad78e64b0aad7bded08bdc;hb=HEAD;hpb=2ff103a560310112864f9db3d18b57408e2e8f6e diff --git a/RefreshDatabaseCache.php b/RefreshDatabaseCache.php index 8b137891..d574edd0 100644 --- a/RefreshDatabaseCache.php +++ b/RefreshDatabaseCache.php @@ -1 +1,54 @@ +cli)) { + $this->cli = true; + return true; + } + parent::getAuth(); // load company! + $au = $this->getAuthUser(); + if (!$au || $au->company()->comptype != 'OWNER') { + $this->jerror("LOGIN-NOAUTH", "Not authenticated", array('authFailure' => true)); + } + $this->authUser = $au; + return true; + + + } + + function get($args, $opts=array()) + { + // technically it would be good to trash the cached ini files here.. + // however we can not really do that, as the ownships are off.. + //we can however regen our own files.. + //DB_DataObject::debugLevel(1); + //HTML_FlexyFramework::get()->debug = 1; + + HTML_FlexyFramework::get()->generateDataobjectsCache(true); + + $this->jok('DONE'); + + } + +} \ No newline at end of file