Commit 81b774a2 authored by Dainis Abols's avatar Dainis Abols
Browse files

Added no-cache do Guzzle client fetch

Version 3.0.6
parent 0bc54eb5
......@@ -183,7 +183,12 @@ class DataHelper
// Fetch fail results
$client = new Guzzle();
try {
$result = $client->get($url, ['verify' => false]);
$result = $client->get($url, [
'headers' => [
'Cache-Control' => 'no-cache',
],
'verify' => false,
]);
} catch (GuzzleException $e) {
$result = null;
}
......@@ -218,7 +223,7 @@ class DataHelper
static public function isDainisIpAddress()
{
return in_array(self::getRealIpAddr(), ['5.179.12.220','5.179.19.241']);
return in_array(self::getRealIpAddr(), ['5.179.12.220', '5.179.19.241']);
}
static public function isLaurisIpAddress()
......@@ -333,7 +338,7 @@ class DataHelper
$trace = debug_backtrace();
$caller = $trace[1];
$caller = str_replace(@$CFG->dirroot.'/mod/luolimpmanager/', null, $caller['file']) . ' @line ' . $caller['line'];
$caller = str_replace(@$CFG->dirroot.'/mod/luolimpmanager/', null, $caller['file']).' @line '.$caller['line'];
return $caller;
}
......
{
"name": "luitd/lu-api",
"version": "3.0.5",
"version": "3.0.6",
"description": "REST API Integration for TYPO3",
"type": "typo3-cms-extension",
"keywords": [
......
......@@ -14,7 +14,7 @@ $EM_CONF[$_EXTKEY] = [
'title' => 'LU API',
'description' => 'REST API Integration for TYPO3',
'category' => 'plugin',
'version' => '3.0.5',
'version' => '3.0.6',
'dependencies' => 'typo3',
'state' => 'stable',
'clearCacheOnLoad' => true,
......@@ -23,7 +23,7 @@ $EM_CONF[$_EXTKEY] = [
'author_company' => 'University of Latvia',
'constraints' => [
'depends' => [
'typo3' => '11.5.0-11.99.99',
'typo3' => '11.5.0-11.99.99'
],
],
'autoload' => [
......
......@@ -4,7 +4,7 @@
## Version
3.0.5
3.0.6
## Dependencies
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment