function uc_cart_exit in Ubercart 5
Implementation of hook_exit().
Code from CacheExclude - http://drupal.org/project/cacheexclude
File
- uc_cart/
uc_cart.module, line 398
Code
function uc_cart_exit() {
global $base_root;
$pages = array(
'cart',
'cart/checkout',
'cart/checkout/review',
'cart/checkout/complete',
);
$this_page = request_uri();
foreach ($pages as $page) {
if ($page && strstr($this_page, $page) !== FALSE) {
cache_clear_all($base_root . $this_page, 'cache_page');
return;
}
}
}