Use module_list(TRUE, FALSE); before module_rebuild_cache();
Update drupal_flush_all_caches() reference.
Use module_list(TRUE, FALSE); before module_rebuild_cache();
Nginx: Fix for dynamically generated PDFs and redirects for legacy URLs with asp/aspx extension.