eZ Publish  [4.2]
clusterpurge.php File Reference

Go to the source code of this file.

Variables

 $cli = eZCLI::instance()
 Cluster files purge script.
 $options
if(!eZScriptClusterPurge::isRequired()) $purgeHandler = new eZScriptClusterPurge()
 $script
 $sys = eZSys::instance()

Variable Documentation

$cli = eZCLI::instance()

Cluster files purge script.

Definition at line 11 of file bin/php/clusterpurge.php.

$options
Initial value:
 $script->getOptions( "[dry-run][iteration-sleep:][iteration-limit:][memory-monitoring][scopes:][expiry:]",
"",
array( 'dry-run' => 'Test mode, output the list of affected files without removing them',
       'iteration-sleep' => 'Amount of seconds to sleep between each iteration when performing a purge operation, can be a float. Default is one second.',
       'iteration-limit' => 'Amount of items to remove in each iteration when performing a purge operation. Default is 100.',
       'memory-monitoring' => 'If set, memory usage will be logged in var/log/clusterpurge.log.',
       'scopes' => 'Comma separated list of file types to purge. Possible values are: classattridentifiers, classidentifiers, content, expirycache, statelimitations, template-block, user-info-cache, viewcache, wildcard-cache-index, image, binaryfile',
       'expiry' => 'Number of days since the file was expired. Only files older than this will be purged. Default is 30, minimum is 1.' ) )

Definition at line 22 of file bin/php/clusterpurge.php.

if (!eZScriptClusterPurge::isRequired()) $purgeHandler = new eZScriptClusterPurge()

Definition at line 40 of file bin/php/clusterpurge.php.

Initial value:
 eZScript::instance( array( 'description' => ( "eZ Publish cluster files purge\n" .
                                                        "Physically purges files\n" .
                                                        "\n" .
                                                        "./bin/php/clusterpurge.php --scopes=scope1,scope2" ),
                                     'use-session' => false,
                                     'use-modules' => false,
                                     'use-extensions' => true ) )

Definition at line 12 of file bin/php/clusterpurge.php.