How to cache posts with random articles recommendations

Posted in: Newspaper
Post count: 51

Hey Everyone,

I use random posts underneath each article in the similar articles area and in the sidebar widget.

It is very important for me to not always show the same recommendations. This is important, thus all articles get shown and trafficed. This becomes somehow tricky than caching comes in.

Thus I wanted to ask you guys for your expertise and hints! Any best practices out there?
How do you cache continuous loading?

My solution for now: I’m using nginx and reduced the cache time of posts to 1min.

Thx, I really appreciate your help!
Best regards, Manu

Post count: 780

Hi,

sorry for the long delay, our servers were under attack and I had to work full time on that 😐 .

You basically have the following options:

  • Use the object cache from w3 total cache – it caches the wordpress objects to disk (or ram via apc if you want)
  • Use mysql query cache (via etc/my.cnf) – it caches the queries to ram

Hope this helps,
Radu O.

  • This reply was modified 12 years by Radu.
Post count: 51

oh, that sucks! I had the same issue the last days with my private server 🙁

Thx!

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