My page is in hook_admin_paths(), but doesn't show admin theme function mymodule_admin_paths() {
  $paths = array(
    'admin-dvr/*' =&gt; TRUE,
  );
  return $paths;
}


I have a module which generates a page and I want that page to be themed with the admin theme. I implemented the above hook so that when I browse to admin-dvr/dvr/manage it should be displaying with the admin theme.

On my dev server, this works just fine. When I push that code to production, and flush all the caches, I'll sometimes see it load with the admin theme ONCE, but then every time after that it loads with the mainsite theme.

What am I doing wrong? Why won't it load my page with the admin theme?
I would suggest you place your admin pages under admin/dvr. In that way you should not need to implement hook_admin_paths() at all.