/** * Execute. * * @param string $task An optional associative array of configuration settings. * * @return void * * @since 1.7.0 */ public function execute($task) { if ($task != 'run') { $task = 'browse'; } parent::execute($task); }
/** * Override the execute method to clear the modules cache for non-display tasks. * * @param string The task to perform. * @return mixed|false The value returned by the called method, false in error case. * @since 1.6 */ public function execute($task) { parent::execute($task); // Clear the component's cache if ($task != 'edit' && $task != 'cancel' && $task != 'add') { $cache = JFactory::getCache('com_modules'); $cache->clean(); } }
public function execute($task) { parent::execute($task); // Clear the component's cache if ($task != 'display') { $cache = JFactory::getCache('com_phocadownload'); $cache->clean(); } }
/** * Proxy for execute. * * If the task is an action which modifies data, the component cache is cleared. * * @since 1.6 */ public function execute($task) { parent::execute($task); // Clear the component's cache if (!in_array($task, array('display', 'edit', 'cancel'))) { $cache = JFactory::getCache(); $cache->clean('com_templates'); $cache->clean('_system'); } }
/** * Proxy for execute. * * If the task is an action which modifies data, the component cache is cleared. * * @since 1.6 */ public function execute($task) { switch ($task) { case 'cancel': $this->cancel(); break; case 'save': $this->save(); break; default: parent::execute($task); break; } // Clear the component's cache if (!in_array($task, array('display', 'edit', 'cancel'))) { $cache = JFactory::getCache(); $cache->clean('com_gantry'); } }