/** * TODO:: This is particularly ugly. Need a more portable solution. */ private function clearCache() { $model = $this->getRequestParameter('model'); if ($model === 'rtSitePage') { require_once dirname(__FILE__) . '/../../../../rtSitePlugin/lib/toolkit/rtSitePageCacheToolkit.class.php'; rtSitePageCacheToolkit::clearCache(); } elseif ($model === 'rtShopCategory') { require_once dirname(__FILE__) . '/../../../../rtShopPlugin/lib/toolkit/rtShopCategoryCacheToolkit.class.php'; rtShopCategoryCacheToolkit::clearCache(); } }
/** * Clean the cache relating to rtSitePage * * @param rtSitePage $rt_site_page */ private function clearCache($rt_site_page = null) { rtSitePageCacheToolkit::clearCache($rt_site_page); }