|
eZ Publish
[4.0]
|
Go to the source code of this file.
Functions | |
| if($options['list-tags']) if($options['list-ids']) | clearItems ($cacheEntries, $cli, $name) |
| purgeItems ($cacheEntries, $cli, $name) | |
| reportProgress ($filename, $count) | |
Variables | |
| $cacheList = eZCache::fetchList() | |
| $cli = eZCLI::instance() | |
| if($options['clear-all']) if($options['clear-tag']) | $idName = false |
| if($options['purge']) | $noAction = true |
| $options | |
| if($options['expiry']) | $purge = false |
| if($options['iteration-max']) | $purgeExpiry = false |
| if($options['iteration-sleep']) | $purgeMax = false |
| $purgeSleep = false | |
| $script | |
| $sys = eZSys::instance() | |
Definition at line 162 of file bin/php/ezcache.php.
| purgeItems | ( | $ | cacheEntries, |
| $ | cli, | ||
| $ | name | ||
| ) |
Definition at line 179 of file bin/php/ezcache.php.
| reportProgress | ( | $ | filename, |
| $ | count | ||
| ) |
Definition at line 197 of file bin/php/ezcache.php.
| $cacheList = eZCache::fetchList() |
Definition at line 91 of file bin/php/ezcache.php.
Referenced by eZCache\clearAll(), eZCache\clearByID(), eZCache\clearByTag(), eZCache\fetchByIDList(), and eZCache\fetchList().
| $cli = eZCLI::instance() |
Definition at line 34 of file bin/php/ezcache.php.
Definition at line 234 of file bin/php/ezcache.php.
| if ($options['purge']) $noAction = true |
Definition at line 87 of file bin/php/ezcache.php.
| $options |
$script->getOptions( "[clear-tag:][clear-id:][clear-all]" . "[iteration-sleep:][iteration-max:][expiry:][list-tags][list-ids][purge]", "", array( 'clear-tag' => 'Clears all caches related to a given tag', 'clear-id' => 'Clears all caches related to a given id, separate multiple ids with a comma', 'clear-all' => 'Clears all caches', 'purge' => 'Enforces purging of cache items which ensures that specified entries are physically removed (Useful for saving diskspace). Used together with the clear-* options.', 'iteration-sleep' => 'Amount of seconds to sleep between each iteration when performing a purge operation, can be a float.', 'iteration-max' => 'Amount of items to remove in each iteration when performing a purge operation.', 'expiry' => 'Date or relative time which specifies when cache items are to be considered expired, e.g \'now\', \'-2 days\' or \'last monday\'', 'list-tags' => 'Lists all available tags', 'list-ids' => 'Lists all available ids' ) )
Definition at line 45 of file bin/php/ezcache.php.
| if ($options['expiry']) $purge = false |
Definition at line 81 of file bin/php/ezcache.php.
Referenced by eZCache\clearItem().
| if ($options['iteration-max']) $purgeExpiry = false |
Definition at line 70 of file bin/php/ezcache.php.
Referenced by purgeItems().
| if ($options['iteration-sleep']) $purgeMax = false |
Definition at line 65 of file bin/php/ezcache.php.
Referenced by purgeItems().
| $purgeSleep = false |
Definition at line 60 of file bin/php/ezcache.php.
Referenced by purgeItems().
eZScript::instance( array( 'description' => ( "eZ Publish Cache Handler\n" . "Allows for easy clearing of Cache files\n" . "\n" . "./bin/php/ezcache.php --clear-tag=content" ), 'use-session' => false, 'use-modules' => false, 'use-extensions' => true ) )
Definition at line 35 of file bin/php/ezcache.php.
| $sys = eZSys::instance() |
Definition at line 56 of file bin/php/ezcache.php.
Referenced by eZCharTransform\cachedTransformationPath(), eZSiteInstaller\createSiteaccessUrls(), eZMediaType\deleteStoredObjectAttribute(), eZBinaryFileType\deleteStoredObjectAttribute(), eZURLOperator\eZDesign(), eZURLOperator\eZImage(), eZPDFExport\filepath(), eZImageVariation\fullPath(), eZUser\getCacheDir(), eZMail\lineSeparator(), eZPDFExport\remove(), eZImageVariation\requestVariation(), eZSysInfo\scan(), eZSendmailTransport\sendMail(), eZHTTPFile\storageDir(), eZURI\transformURI(), eZMediaType\trashStoredObjectAttribute(), and eZBinaryFileType\trashStoredObjectAttribute().