Skip to content
This repository has been archived by the owner on Sep 28, 2020. It is now read-only.

Commit

Permalink
-Fix spelling in cache key name
Browse files Browse the repository at this point in the history
  • Loading branch information
cjcox17 committed Jun 27, 2018
1 parent 78feb6b commit 8bf37e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Vtiger.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function __construct()
2 => new VtigerErrorElement('Success property not set on VTiger response', 2),
3 => new VtigerErrorElement('Error property not set on VTiger response when success is false', 3),
4 => new VtigerErrorElement('There are no search fields in the array', 4),
5 => new VtigerErrorElement('Could not complete login request within ' . $this->maxRetries . ' tries', 5),
5 => new VtigerErrorElement('Could not complete login request within ' . $this->maxRetries . ' tries', 5),
6 => new VtigerErrorElement(
'Could not complete get token request within ' . $this->maxRetries . ' tries',
6
Expand Down Expand Up @@ -191,7 +191,7 @@ protected function login($sessionData)
if (Cache::has('clystnet_vtiger')) {
$json = json_decode(Cache::pull('clystnet_vtiger'));
$json->sessionid = $sessionId;
Cache::forever('clystnetVtiger', json_encode($json));
Cache::forever('clystnet_vtiger', json_encode($json));
} else {
throw VtigerError::init($this->vTigerErrors, 8, 'There is no key for index clystnet_vtiger.');
}
Expand Down

0 comments on commit 8bf37e9

Please sign in to comment.