ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
flush.php
Go to the documentation of this file.
1 #!/usr/bin/php
2 <?php
3 
4 chdir(dirname(__FILE__));
5 require_once 'common.php';
6 assertCli();
7 
14 function 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 
24 e($php . ' generate-includes.php');
25 e($php . ' generate-schema-cache.php');
26 e($php . ' flush-definition-cache.php');
27 e($php . ' generate-standalone.php');
28 e($php . ' config-scanner.php');
29 
30 // vim: et sw=4 sts=4
if((!isset($_SERVER['DOCUMENT_ROOT'])) OR(empty($_SERVER['DOCUMENT_ROOT']))) $_SERVER['DOCUMENT_ROOT']
e($cmd)
Definition: flush.php:14
assertCli()
Definition: common.php:3
$php
Definition: flush.php:22