Skip to content

Commit 148d936

Browse files
committed
Turn off validation, and turn on debugging for Guzzle cache subscriber
1 parent e8e3536 commit 148d936

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/LaunchDarkly/LDClient.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,15 +81,16 @@ protected function _make_client($options) {
8181
'Content-Type' => 'application/json',
8282
'User-Agent' => 'PHPClient/' . self::VERSION
8383
],
84+
'debug' => true,
8485
'timeout' => $options['timeout'],
8586
'connect_timeout' => $options['connect_timeout']
8687
]
8788
]);
8889

8990
if (!isset($options['cache_storage'])) {
90-
$csOptions = [];
91+
$csOptions = ['validate' => false];
9192
} else {
92-
$csOptions = ['storage' => $options['cache_storage']];
93+
$csOptions = ['storage' => $options['cache_storage'], 'validate' => false];
9394
}
9495

9596
CacheSubscriber::attach($client, $csOptions);

0 commit comments

Comments
 (0)