storyblok / storyblok-php-client

Storyblok - PHP Client
https://www.storyblok.com
MIT License
34 stars 37 forks source link

Fix/54 reset cache #80

Closed roberto-butti closed 1 year ago

roberto-butti commented 1 year ago

Pull request type

Fix issue #54

How to test this PR

Run tests composer run test The test is Integration: get one story with the option with cache

What is the new behavior?

The previous code: in the case of caching and published story, before to call perform a call, try to call the API to retrieve the CV. This last call recalls itself again to retrieve the CV (loop). The current behavior is: in the case of published stories, it retrieves the data without CV and, after that, stores in the cache the data and the new cv.