I have a problem with 3 views that display the latest of their specified posts on the website's homepage.
One of the views, in particular, is ordered by a date custom field to display the next 'event' post type first.
The problem is that these 3 views keep caching so the latest post that should be displays is not because the old post is cached.
I have added the wpv_filter_disable_caching filter to block the caching on these views but they continue to cache. The only way to display the correct posts on the front end is to log in and clear the views cache manually. For one of the views a new cache is created immediately.
See screenshots:
1. The filter in functions.php to prevent cache
2. The 3 views that keep caching
Website:
You can see the three views displayed on the homepage - hidden link - under the following headings:
1. The Balanceo Collection - view of product posts filtered by 'if a custom field checkbox has a value of 1' and ordered by Field - modified, descending
2. News and other stories - view of story posts ordered by post date, descending.
3. Try them on! - view of event post ordered by Field - wpcf-event-start-date, ascending. (not included in screenshots)
I can't figure out how to stop this caching on these views...