protected function postEventsActions(array $executed_events_ids, $queue_name)
 {
     $this->site_cache->restoreOwnership();
     // Since generating aliases may be costly, do it only once everything else is processed
     if ($this->backend_aliases->aliasesNeedUpdate()) {
         $this->backend_aliases->update();
     }
     // Update CVS root allow file once everything else is processed
     if ($this->backend_cvs->getCVSRootListNeedUpdate()) {
         $this->backend_cvs->CVSRootListUpdate();
     }
     // Update SVN root definition for Apache once everything else is processed
     if ($this->backend_svn->getSVNApacheConfNeedUpdate()) {
         $this->backend_svn->generateSVNApacheConf();
         // Need to refresh apache (graceful)
         system('/sbin/service httpd graceful');
     }
     // Update system user and group caches once everything else is processed
     if ($this->backend_system->getNeedRefreshUserCache()) {
         $this->backend_system->refreshUserCache();
     }
     if ($this->backend_system->getNeedRefreshGroupCache()) {
         $this->backend_system->refreshGroupCache();
     }
     $this->triggerApplicationOwnerEventsProcessing();
 }
Exemplo n.º 2
0
    }
}
if (!$command) {
    show_usage();
    exit(0);
}
require_once 'pre.php';
switch ($command) {
    case 'clear-caches':
        $site_cache = new SiteCache(new Log_ConsoleLogger());
        $site_cache->invalidatePluginBasedCaches();
        break;
    case 'restore-caches':
        $site_cache = new SiteCache(new Log_ConsoleLogger());
        $site_cache->restoreCacheDirectories();
        $site_cache->restoreOwnership();
        break;
    case 'version':
        show_version();
        break;
    default:
        show_usage();
}
function show_usage()
{
    echo <<<EOT
Usage: tuleap COMMAND

Tuleap administration command line

Options: