We are transitioning over to a new forum platform. Please post new issues there. Existing threads will be dealt with here unless you choose to move them over. Visit the new forum
Perch collection cache issue with cookies
I'm passing a cookie value to filter a Perch Collection.
This works fine, like below:
perch_collection('Some Collection', [ 'filter' => 'name', 'match' => 'in', 'value' => $some_cookie_value, 'template' => 'some_template.html', ]);
The problem I'm facing is that I have to refresh the page for this to properly display the results. This is presumably because of some Perch page caching. Should I be facing this problem? I can see on the previous page that the cookie has been set, if I look in the Application tab of Chrome DevTools. If so, Can I do something to call a Perch Collection uncached?
FYI If I disable the browser cache then this works fine, but with the browser cache enabled I need to reload pages for the results to be displayed correctly.
Want to reply to this thread?Login with Perch