Issue #0001788: [Dirigeants Opérationnels] creating cache files
This commit is contained in:
parent
257fae95bd
commit
ac9001bc06
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user