Issue #0001788: [Dirigeants Opérationnels] creating cache files

This commit is contained in:
Aram HARUTYUNYAN 2014-03-19 10:57:42 +00:00
parent 257fae95bd
commit ac9001bc06
2 changed files with 9 additions and 6 deletions

View File

@ -2526,20 +2526,23 @@ class SaisieController extends Zend_Controller_Action
switch ($mode) {
case 'add':
$fonction = $this->fctDir();
$this->view->assign('fonction', $fonction);
$this->view->assign('fonction', $fonction);
break;
case 'edit':
$fonction = $this->fctDir();
$infos = $ws->getDirigeantsOp($siren, $id);
$this->view->assign('fonction', $fonction);
$this->view->assign('infos', $infos->item[0]);
break;
case 'del':
$infos = $ws->getDirigeantsOp($siren, $id);
break;
}
$this->view->assign('mode', $mode);
$this->view->assign('type', $type);
$this->view->assign('id', $id);

View File

@ -2543,7 +2543,7 @@ class WsScores
*/
public function getDirigeantsOp($siren, $id = null)
{
$filename = 'dirigeantsop-'.$siren;
$filename = 'dirigeantsop-'.$siren.'-'.intval($id);
if ($this->cacheWrite) {
$cache = new Cache($filename);