The drop is always movingYou know that saying about standing on the shoulders of giants? Drupal is standing on a huge pile of midgetsAll content management systems suck, Drupal just happens to suck less.Popular open source software is more secure than unpopular open source software, because insecure software becomes unpopular fast. [That doesn't happen for proprietary software.]Drupal makes sandwiches happen.There is a module for that

When you do not want to cache a few pages

Submitted by nk on Fri, 2007-06-29 13:56

NowPublic has a page which tries to find out the locality of the visitors based on her IP. We do not want this page to be cached (obviously). But Drupal provides no mechanism to make a page exempt from caching. By the time the page is loaded from the cache we have settings, database connection, sessions, variables and hook_init is ran. There are quite some tricks you can do even with this limited arsenal, but I found variable overrides in settings.php to be best if ($_GET['q'] == 'local') $conf['cache'] = FALSE;.

Commenting on this Story is closed.

Submitted by on Sun, 2007-07-01 07:36.

I maintain the CacheExclude module to allow customized specification of pages to not get cached, but it works by removing from the cache after it's added. That hurts the query cache. I didn't even realize $conf['cache'] existed. I'll have to switch it over to this now. Thanks!