You are here

function expire_normal_path_check in Cache Expiration 7

Same name and namespace in other branches
  1. 6 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 493
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);
  $ancestors = menu_get_ancestors($parts);
  $router_item = db_query_range('SELECT path FROM {menu_router} WHERE path IN (:ancestors) ORDER BY fit DESC', 0, 1, array(
    ':ancestors' => $ancestors,
  ))
    ->fetchAssoc();
  return $router_item;
}