You are here

function uc_wishlist_exit in UC Wish List 7

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

Implements hook_exit().

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

File

./uc_wishlist.module, line 268
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;
    }
  }
}