You are here

function expire_normal_path_check in Cache Expiration 6

Same name and namespace in other branches
  1. 7 expire.module \expire_normal_path_check()
2 calls to expire_normal_path_check()
drush_expire_path in ./expire.drush.inc
Callback for expire-path drush command.
expire_rules_action_flush_url in ./expire.rules.inc
Expire a URL from the page cache.

File

./expire.module, line 601
Provides logic for page cache expiration

Code

function expire_normal_path_check($path) {
  $original_map = arg(NULL, $path);
  $parts = array_slice($original_map, 0, MENU_MAX_PARTS);
  list($ancestors, $placeholders) = menu_get_ancestors($parts);
  $router_item = db_fetch_array(db_query_range('SELECT path FROM {menu_router} WHERE path IN (' . implode(',', $placeholders) . ') ORDER BY fit DESC', $ancestors, 0, 1));
  return $router_item;
}