Showing at random blog articles despite caching

Posted in: Newspaper
Post count: 148

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.
Post count: 27744

Hi,

Please provide the link to your website and a screenshot of where the block is.

Thank you!

Post count: 148

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.
Post count: 27744

Hello Jos,

I checked and I think that the cache plugin caused this issue. Please do a test without the cache plugin and check if the issue persists.

Thank you!

Post count: 148

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.
Post count: 27744

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!

Post count: 148

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/

  • This reply was modified 2 years by DocDigit.
  • This reply was modified 2 years by DocDigit.
Post count: 27744

Hi,

Thank you for this information.

Have a great day!

Viewing 8 posts - 1 through 8 (of 8 total)
The forum ‘Newspaper’ is closed to new topics and replies.