You are here

function uc_wishlist_exit in UC Wish List 6

Same name and namespace in other branches
  1. 7 uc_wishlist.module \uc_wishlist_exit()

Implementation of hook_exit().

Code from CacheExclude - http://drupal.org/project/cacheexclude

File

./uc_wishlist.module, line 184
Allows users to create public shopping/wish lists.

Code

function uc_wishlist_exit() {
  global $base_root;
  $pages = array(
    'wishlist',
    'wishlist/search',
  );
  $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;
    }
  }
}