Hello Team,
Running Newspaper with caching.
On my main page I display (amongst other) news articles in Flex Block 1 with
> Filter
– All Categories
– Random Posts
If I hit F5 as a visitor, the blog articels don’t change, where as I check the page when being logged in as administrator the same time, different blog articles do show up (which is my intention).
Is there a setting that I can use in order to force different articles shown every time the main page shows, although I caching it?
-
This topic was modified 2 years by
DocDigit.
Hi,
Please refer to https://cloudzeeland.nl
with image of the section that doesn’t refresh on F5 in browsers
@ https://imgur.com/a/Zbhu8yX
Settings of that section (1,2,3)
@ https://imgur.com/a/2Nh2Qqm
Thanks,
Jos
-
This reply was modified 2 years by
DocDigit.
Hi Anamaria,
Yes the issue is the cache function of WP Optimize.
If the cache plugin is causing this, why does the random display function work well if I am logged in backoffice (with caching active)?
Can you suggest another cache plugin that will do the job, or should I just use the cache function of Newspaper itself only?
-
This reply was modified 2 years by
DocDigit.
Hello,
I think that the plugin has an object cache option, which is why it works when you are logged in.
We recommend Super cache -> https://forum.tagdiv.com/cache-plugin-install-and-configure/ also, you can use WP Rocket.
Thank you!
For all WP Optimize users, just change a setting in the plugin:
Under Cache >> Advanced settings, enter text ‘is_front_page’ (without ”) in Section “Conditional tags to exclude from caching”
That works fine!
See also the WordPress Developer pages @ https://developer.wordpress.org/reference/functions/is_front_page/