webCOMAND

dependencies::delete_cache()

Delete the entire dependency cache for a specific publication based on the Publication DOID.

Only the dependency cache for the Publication dimension specified by the DOID will be removed.  If the Publication contains more than one dimension, other dimensions must be removed with additional calls.

Prototype

void delete_cache(int $publication_doid)

Parameters

  • publication_doid - The DOID of the Publication to delete the dependency cache for.

Example

<?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);
}