You are here

function _background_process_cleanup_menu in Background Process 8

Same name and namespace in other branches
  1. 7 background_process.module \_background_process_cleanup_menu()

Implements to Cleanup cache menu and ensure all locks are released (again).

2 string references to '_background_process_cleanup_menu'
background_process_service_start in ./background_process.module
Implements to Call the function requested by the service call.
DefaultController::backgroundProcessServiceStart in src/Controller/DefaultController.php
Implements Background Process Service Start.

File

./background_process.module, line 380
This module implements a framework for calling funtions in the background.

Code

function _background_process_cleanup_menu($cid) {
  drupal_flush_all_caches('cache_menu', $cid);

  // Release locks in case cache_clear_all() set's a lock and lock_release_all()
  // has already been run.
  \Drupal::lock()
    ->releaseAll();
}