Title: Caching problem with random button
Last modified: August 24, 2020

---

# Caching problem with random button

 *  Resolved [Daniel](https://wordpress.org/support/users/davil2008/)
 * (@davil2008)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/caching-problem-with-random-button/)
 * Hello.
    I have a random post button on my site for quite a while which worked
   for me since I created it. I recently installed w3 total cache. I now noticed
   that if you click the button, at first it works, but then if you click it again
   it brings you to the same post over and over. I guess this is page cache ? Anyway,
   is there a way to fix this ? Thank you in advance.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcaching-problem-with-random-button%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 8 replies - 1 through 8 (of 8 total)

 *  Plugin Contributor [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/caching-problem-with-random-button/#post-13305500)
 * Hello [@davil2008](https://wordpress.org/support/users/davil2008/)
 * I am sorry about the issue you are experiencing and I am happy to assist you 
   with this.
    Can you please share where is the button you are referring to (I 
   cannot find it)? Please provide a screenshot or specify the location. Does the
   issue persist if you purge the cache? Thanks!
 *  Thread Starter [Daniel](https://wordpress.org/support/users/davil2008/)
 * (@davil2008)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/caching-problem-with-random-button/#post-13306032)
 * Hi, the button is at the sidebar, after the search form. It is a red/pink button
   with an explore title.
    -  This reply was modified 5 years, 9 months ago by [Daniel](https://wordpress.org/support/users/davil2008/).
 *  Plugin Contributor [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/caching-problem-with-random-button/#post-13306173)
 * Hello [@davil2008](https://wordpress.org/support/users/davil2008/)
 * Thank you for the information.
    The problem is that the page is cached, and now
   it’s showing the last page that was visited. Can you please go to Performance
   >Page Cache, Scroll down to advanced and add `/random` to “Never cache following
   Pages” field, save all settings and purge the cache. See if te issue persists.
   Thanks!
 *  Thread Starter [Daniel](https://wordpress.org/support/users/davil2008/)
 * (@davil2008)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/caching-problem-with-random-button/#post-13306278)
 * Sorry, I currently don’t have access to my computer, but I will try this as soon
   as I come home !! Anyway, doing this won’t have any affect on the caching of 
   other pages ?
 *  Plugin Contributor [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/caching-problem-with-random-button/#post-13309003)
 * Hello [@davil2008](https://wordpress.org/support/users/davil2008/)
 * Thank you for the information.
    No, the pages will be cached but you should not
   have the issue with always showing the same page. Thanks!
 *  Thread Starter [Daniel](https://wordpress.org/support/users/davil2008/)
 * (@davil2008)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/caching-problem-with-random-button/#post-13309427)
 * OK, thank you. I will report as soon as possible.
 *  Thread Starter [Daniel](https://wordpress.org/support/users/davil2008/)
 * (@davil2008)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/caching-problem-with-random-button/#post-13333987)
 * Yes !!! Thank you so much, this worked !! Love your plugin !!
 *  Plugin Contributor [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/caching-problem-with-random-button/#post-13336043)
 * You are most welcome!
 * We would really appreciate it if you could take a minute and post a review [here](https://wordpress.org/support/plugin/w3-total-cache/reviews/).
   This will help us to continue offering a top-notch product to users.
    Thanks!

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Caching problem with random button’ is closed to new replies.

 * ![](https://ps.w.org/w3-total-cache/assets/icon-256x256.png?rev=1041806)
 * [W3 Total Cache](https://wordpress.org/plugins/w3-total-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/w3-total-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/w3-total-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/w3-total-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/w3-total-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/w3-total-cache/reviews/)

 * 8 replies
 * 2 participants
 * Last reply from: [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * Last activity: [5 years, 9 months ago](https://wordpress.org/support/topic/caching-problem-with-random-button/#post-13336043)
 * Status: resolved