WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top
  • I have just deployed the W3 Total Cache plugin on my dedicated server (moillusions.com), but am not sure if it works already (server load still high).

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

share|improve this question

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)];

From http://stackoverflow.com/questions/3419928/how-can-i-return-a-random-value-from-an-array

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 url.com?random 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 moillusions.com?random 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.