Skip to content

Commit

Permalink
ACP2E-3010: PHPSESSID is changing each POST Request
Browse files Browse the repository at this point in the history
  • Loading branch information
abukatar committed May 23, 2024
1 parent c893121 commit cbbdec8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,9 @@ public function load($id, $doNotTestCacheValidity = false)
*/
public function test($id)
{
return $this->local->test($id) ?? $this->remote->test($id);
return $this->_options['use_stale_cache'] ?
($this->local->test($id) ?? $this->remote->test($id))
: $this->remote->test($id);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -413,4 +413,16 @@ public function testSaveWithoutRemoteData(): void

$this->remoteSyncCacheInstance->save(1, 1);
}

public function testTest(): void
{
$this->localCacheMockExample
->method('test')
->willReturn(true);
$this->remoteCacheMockExample
->method('test')
->willReturn(false);

$this->assertFalse($this->remoteSyncCacheInstance->test(1));
}
}

0 comments on commit cbbdec8

Please sign in to comment.