$CacheRowID = 0;

if (isset($WorkFlowReturnArray['EditedID']))
{
		$CacheRowID = intval($WorkFlowReturnArray['EditedID']);
}

if (isset($WorkFlowReturnArray['InsertedID']) && $CacheRowID == 0)
{
		$CacheRowID = intval($WorkFlowReturnArray['InsertedID']);
}

if (isset($DeleteID) && $CacheRowID == 0)
{
		$CacheRowID = intval($DeleteID);
}

if ($CacheRowID > 0)
{
		global $PearCachingOptions;

		require_once(BASE_DIR.'/classes/CacheLite/Cache/Lite/Output.php');

		$cache = new Cache_Lite($PearCachingOptions);

		//we will try to remove the simple id
		$cache->remove($CacheRowID, 'block');

		//we will try to remove the group
		$cache->clean('pageblock'.$CacheRowID);

		

}
//we also need to refresh all header images.
$smarty->clear_cache(null,'menu-css');
$smarty->clear_cache(null,'adlets');
$smarty->clear_cache(null,'benefits');
