mirror of
https://github.com/e107inc/e107.git
synced 2025-08-05 22:27:34 +02:00
Make sure data is cached when no data returned.
This commit is contained in:
@@ -324,10 +324,14 @@ class e_marketplace
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// print_a($xdata['data']);
|
|
||||||
|
|
||||||
$data = e107::serialize($arr);
|
if(empty($arr))
|
||||||
$cache->set($tag, $data, true, null, true);
|
{
|
||||||
|
$arr = array('-unable-to-connect'); // make sure something is cached so further lookups stop.
|
||||||
|
}
|
||||||
|
|
||||||
|
$data = e107::serialize($arr, 'json');
|
||||||
|
$cache->set($tag, $data, true, true, true);
|
||||||
|
|
||||||
return $arr;
|
return $arr;
|
||||||
|
|
||||||
@@ -561,7 +565,7 @@ class e_marketplace_adapter_wsdl extends e_marketplace_adapter_abstract
|
|||||||
'exception' => true,
|
'exception' => true,
|
||||||
"uri" => "http://server.soap.e107.inc.com/",
|
"uri" => "http://server.soap.e107.inc.com/",
|
||||||
'cache_wsdl' => WSDL_CACHE_NONE,
|
'cache_wsdl' => WSDL_CACHE_NONE,
|
||||||
'connection_timeout' => 7,
|
'connection_timeout' => 5,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user