Skip to content

Instantly share code, notes, and snippets.

@neclimdul
Created August 28, 2013 20:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save neclimdul/6370758 to your computer and use it in GitHub Desktop.
Save neclimdul/6370758 to your computer and use it in GitHub Desktop.
<?php
// Don't cache any cart of checkout pages.
// Code based on CacheExclude - http://drupal.org/project/cacheexclude
if (arg(0) == 'cart') {
drupal_page_is_cacheable(FALSE);
return;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment