You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I am having hard time trying to grasp the logic of accessing cached data. Can you point me in the right direction what to do after file gets created? The file is created fine with data I'm interested in but using $response->getBody() returns nothing? How can I access data?
Example I'm using:
`
$stack = HandlerStack::create();
$stack->push(
new CacheMiddleware(
new GreedyCacheStrategy(
new FlysystemStorage(
new Local($cache_dir)
),
$ttl
)
),
"greedy-cache"
);
$client = new Client(['handler' => $stack]);
$response->getBody() //this is empty
`
This is the response object I'm getting (the file is almost the same, though serialized, and with response body):
Hello, I am having hard time trying to grasp the logic of accessing cached data. Can you point me in the right direction what to do after file gets created? The file is created fine with data I'm interested in but using
$response->getBody()
returns nothing? How can I access data?Example I'm using:
`
`
This is the response object I'm getting (the file is almost the same, though serialized, and with response body):
`
`
Any help how to proceed? Thanks.
The text was updated successfully, but these errors were encountered: