[ Index ] |
|
Code source de eZ Publish 3.9.0 |
1 #!/usr/bin/env php 2 <?php 3 // 4 // Created on: <14-Jan-2005 09:27:13 dr> 5 // 6 // SOFTWARE NAME: eZ publish 7 // SOFTWARE RELEASE: 3.9.0 8 // BUILD VERSION: 17785 9 // COPYRIGHT NOTICE: Copyright (C) 1999-2006 eZ systems AS 10 // SOFTWARE LICENSE: GNU General Public License v2.0 11 // NOTICE: > 12 // This program is free software; you can redistribute it and/or 13 // modify it under the terms of version 2.0 of the GNU General 14 // Public License as published by the Free Software Foundation. 15 // 16 // This program is distributed in the hope that it will be useful, 17 // but WITHOUT ANY WARRANTY; without even the implied warranty of 18 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19 // GNU General Public License for more details. 20 // 21 // You should have received a copy of version 2.0 of the GNU General 22 // Public License along with this program; if not, write to the Free 23 // Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 24 // MA 02110-1301, USA. 25 // 26 // 27 28 include_once ( 'lib/ezutils/classes/ezcli.php' ); 29 include_once ( 'kernel/classes/ezscript.php' ); 30 31 $cli =& eZCLI::instance(); 32 $script =& eZScript::instance( array( 'description' => ( "eZ publish static cache generator\n" . 33 "\n" . 34 "./bin/makestaticcache.php --siteaccess user" ), 35 'use-session' => false, 36 'use-modules' => true, 37 'use-extensions' => true ) ); 38 39 $script->startup(); 40 41 $options = $script->getOptions( "[f|force]", 42 "", 43 array( 'force' => "Force generation of cache files even if they already exist." ) ); 44 45 $force = $options['force']; 46 47 $script->initialize(); 48 49 include_once ( 'lib/ezutils/classes/ezdebug.php' ); 50 include_once ( 'lib/ezfile/classes/ezdir.php' ); 51 include_once ( 'lib/ezutils/classes/ezini.php' ); 52 include_once ( 'kernel/classes/ezstaticcache.php' ); 53 54 $staticCache = new eZStaticCache(); 55 $staticCache->generateCache( $force, false, $cli, false ); 56 57 if ( !$force ) 58 { 59 $staticCache->generateAlwaysUpdatedCache( false, $cli, false ); 60 } 61 62 eZStaticCache::executeActions(); 63 64 $script->shutdown(); 65 66 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sat Feb 24 10:30:04 2007 | par Balluche grâce à PHPXref 0.7 |