drupal_flush_all_caches

function drupal_flush_all_caches

drupal_flush_all_caches()

Flushes all persistent caches, resets all variables, and rebuilds all data structures.

At times, it is necessary to re-initialize the entire system to account for changed or new code. This function:

  • Clears all persistent caches:
    • The bootstrap cache bin containing base system, module system, and theme system information.
    • The common 'default' cache bin containing arbitrary caches.
    • The page cache.
    • The URL alias path cache.
  • Resets all static variables that have been defined via drupal_static().
  • Clears asset (JS/CSS) file caches.
  • Updates the system with latest information about extensions (modules and themes).
  • Upd