Sign up ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.
  • I have just deployed the W3 Total Cache plugin on my dedicated server (, but am not sure if it works already (server load still high).

  • I have a very important random link generator: yet am not sure how to exclude this from caching? (so it's always a different link when clicked)

share|improve this question

2 Answers 2

Use jQuery or Javascript to cycle through and randomly pick one of your links, this way you can bypass the caching?

var messages = ["Good!", "Great!", "Awesome!", "Super!", "Nice!"];
function getMessage() {
   return messages[Math.floor(Math.random() * messages.length)];


share|improve this answer
  1. What this plugin is supposed to do about server load, if anything?

  2. This depends on caching setup you use, good caching plugins try to intelligently skip obviously dynamic pages with query arguments in URL.

share|improve this answer
sorry, thought it's w3 total cache help forum (mistake) – vurdlak May 30 '11 at 23:53
anyone knows how to disable the from caching with w3 total cache? – vurdlak May 30 '11 at 23:53
@vurdlak make sure that Performance > Page Cache > General > Cache URIs with query string variables is not checked. Although I don't see how this matters since that performs redirect to post which can be cached just fine, has little to do with how user got there. – Rarst May 30 '11 at 23:56
hi, this is because when I click it brings me to a page, and when I'm over reading it, click it again, but brings me to same page (as ?random is cached to same page). let me try this what you said – vurdlak May 31 '11 at 0:00
@Rarst.. this is unchecked by default, yet random doesn't refresh to new page when clicked again (always brings to same page) – vurdlak May 31 '11 at 0:02

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.