According to this article about
drupal_bootstrap function, all parameters for drupal_bootstrap() run sequentially. And if we see the sequence, here first comes -
DRUPAL_BOOTSTRAP_PAGE_CACHE and then database (
So, My question is cache is itself stored in database, so in order to serve pages from cache, a database connection is a must. Then How Drupal manages these calls sequentially?
DRUPAL_BOOTSTRAP_DATABASE should come before
DRUPAL_BOOTSTRAP_PAGE_CACHE. If not, what is the reason?