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 ...@@ -183,7 +183,12 @@ class DataHelper
// Fetch fail results // Fetch fail results
$client = new Guzzle(); $client = new Guzzle();
try { try {
$result = $client->get($url, ['verify' => false]); $result = $client->get($url, [
'headers' => [
'Cache-Control' => 'no-cache',
],
'verify' => false,
]);
} catch (GuzzleException $e) { } catch (GuzzleException $e) {
$result = null; $result = null;
} }
...@@ -218,7 +223,7 @@ class DataHelper ...@@ -218,7 +223,7 @@ class DataHelper
static public function isDainisIpAddress() 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() static public function isLaurisIpAddress()
...@@ -333,7 +338,7 @@ class DataHelper ...@@ -333,7 +338,7 @@ class DataHelper
$trace = debug_backtrace(); $trace = debug_backtrace();
$caller = $trace[1]; $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; return $caller;
} }
......
{ {
"name": "luitd/lu-api", "name": "luitd/lu-api",
"version": "3.0.5", "version": "3.0.6",
"description": "REST API Integration for TYPO3", "description": "REST API Integration for TYPO3",
"type": "typo3-cms-extension", "type": "typo3-cms-extension",
"keywords": [ "keywords": [
......
...@@ -14,7 +14,7 @@ $EM_CONF[$_EXTKEY] = [ ...@@ -14,7 +14,7 @@ $EM_CONF[$_EXTKEY] = [
'title' => 'LU API', 'title' => 'LU API',
'description' => 'REST API Integration for TYPO3', 'description' => 'REST API Integration for TYPO3',
'category' => 'plugin', 'category' => 'plugin',
'version' => '3.0.5', 'version' => '3.0.6',
'dependencies' => 'typo3', 'dependencies' => 'typo3',
'state' => 'stable', 'state' => 'stable',
'clearCacheOnLoad' => true, 'clearCacheOnLoad' => true,
...@@ -23,7 +23,7 @@ $EM_CONF[$_EXTKEY] = [ ...@@ -23,7 +23,7 @@ $EM_CONF[$_EXTKEY] = [
'author_company' => 'University of Latvia', 'author_company' => 'University of Latvia',
'constraints' => [ 'constraints' => [
'depends' => [ 'depends' => [
'typo3' => '11.5.0-11.99.99', 'typo3' => '11.5.0-11.99.99'
], ],
], ],
'autoload' => [ 'autoload' => [
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
## Version ## Version
3.0.5 3.0.6
## Dependencies ## 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