0
  • 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)

1

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 https://stackoverflow.com/questions/3419928/how-can-i-return-a-random-value-from-an-array

0
  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.

  • 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
  • 1
    @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 clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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