<?php //activate Lookups require_once 'AMP/System/Lookups.inc.php'; require_once 'AMP/Registry.php'; $lookup_factory =& AMPSystem_LookupFactory::instance(); $lookup_factory->init(AMP_Registry::getDbcon()); //require_once( 'AMP/Content/Map.inc.php');
function clear_cache($section_id) { static $lookup = array(); if (!isset($lookup[$section_id])) { $lookup[$section_id] = new AMPContentLookup_RelatedArticles($section_id); } $factory =& AMPSystem_LookupFactory::instance(); $factory->clearCache($lookup[$section_id]); }
function clearCache() { $factory = AMPSystem_LookupFactory::instance(); $factory->clearCache($this); }