ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
flush.php
Go to the documentation of this file.
1#!/usr/bin/php
2<?php
3
4chdir(dirname(__FILE__));
5require_once 'common.php';
7
14function e($cmd)
15{
16 echo "\$ $cmd\n";
17 passthru($cmd, $status);
18 echo "\n";
19 if ($status) exit($status);
20}
21
22$php = empty($_SERVER['argv'][1]) ? 'php' : $_SERVER['argv'][1];
23
24e($php . ' generate-includes.php');
25e($php . ' generate-schema-cache.php');
26e($php . ' flush-definition-cache.php');
27e($php . ' generate-standalone.php');
28e($php . ' config-scanner.php');
29
30// vim: et sw=4 sts=4
An exception for terminatinating execution or to throw for unit testing.
assertCli()
Definition: common.php:3
$php
Definition: flush.php:22
e($cmd)
Definition: flush.php:14
$cmd
Definition: sahs_server.php:35
if((!isset($_SERVER['DOCUMENT_ROOT'])) OR(empty($_SERVER['DOCUMENT_ROOT']))) $_SERVER['DOCUMENT_ROOT']