Skip to content
Snippets Groups Projects
Commit a7ca9117 authored by alvaro's avatar alvaro
Browse files

Merge remote-tracking branch 'upstream/master'

parents 0e182c23 f3f4e34c
No related branches found
No related tags found
No related merge requests found
......@@ -57,9 +57,10 @@ class Endpoint{
echo("Error executing SPARQL query (".$this->sparqlUrl."): ".curl_error($c));
}
}
$http_status = intval(curl_getinfo($c, CURLINFO_HTTP_CODE));
curl_close($c);
$this->params['output'] = $auxoutput;
if(is_int($conf['cache']['global']) && $conf['cache']['global'] > 0){
if(is_int($conf['cache']['global']) && $conf['cache']['global'] > 0 && $http_status == 200){
file_put_contents($cacheFile,($aux), LOCK_EX);
if($conf['debug']){
$msg = "Notice: Writing results in ".$cacheFile."\n";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment