/** * This clears the language cache */ public function clearcacheJsonAction() { $languageManager = new RM_Language_Manager(); $languageManager->clearCache(); return array('data' => array('success' => true)); }
public function enableJsonAction() { $ids = $this->_getParam('ids', array()); $model = new RM_Modules(); $unresolvedDependencies = array(); foreach ($ids as $id) { $row = $model->find($id)->current(); $result = $model->enable($row); } $languageManager = new RM_Language_Manager(); $languageManager->clearCache(); // clear the css cache $model->clearCSSCache(); return array('data' => array('success' => true, 'errors' => $unresolvedDependencies)); }