- ⌂ dependencies
- Static Methods
\io_comand_script\dependencies
Log and manage script processing dependencies, which are used to cache processed script results to improve publishing performance.
This class is generally only used by the API internally. However, one or two functions may be useful to scripts and applications.
<?php
/**
* Delete the Publish Dependency Cache for all Publications
*/
require_once('comand.php');
$repo = comand::repo();
$publications = $repo->get("FROM Publication+");
foreach($publications as $publication) {
\io_comand_script\dependencies::delete_cache($publication->DOID);
}