From d9a9f199e9e741649934fa136a42af2f7e636df2 Mon Sep 17 00:00:00 2001 From: Damien LASSERRE Date: Thu, 25 Aug 2011 09:17:40 +0000 Subject: [PATCH] =?UTF-8?q?Mise=20a=20jours=20de=20Giant=20avec=20quelques?= =?UTF-8?q?=20nouvelles=20fonctionnalit=C3=A9s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/Giant/Controller/RechercheController.php | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/library/Giant/Controller/RechercheController.php b/library/Giant/Controller/RechercheController.php index 384b5d920..bfc912d12 100644 --- a/library/Giant/Controller/RechercheController.php +++ b/library/Giant/Controller/RechercheController.php @@ -103,15 +103,10 @@ Class GiantRechercheController extends GiantFunctionController public function GetRapport($CompanyId, $DataSetType) { - $cache = new Cache('giant-'.$DataSetType.'-'.$CompanyId); - if(!$cache->exist()) { - $this->CreditData = new CreditData($this->soapG, $CompanyId); - $result = $this->CreditData->getMethode('OrderDataSet', array($DataSetType)); - $result = $this->CreditData->getMethode('RetrieveDataSet', array($result->Order->InternalOrderId)); - $cache->setBlock($result); - } else { - $result = $cache->getBlock(); - } + $this->CreditData = new CreditData($this->soapG, $CompanyId); + $result = $this->CreditData->getMethode('OrderDataSet', array($DataSetType)); + $result = $this->CreditData->getMethode('RetrieveDataSet', array($result->Order->InternalOrderId)); + $cache->setBlock($result); return ($result); }