Because of random high traffic on our website, for which even total cache is not good enough (~ 1000 req/s) we would like to put CDN in front of the whole site. Cloudflare CDN caching seems to do the job with following issues:
- Once a page is cached without admin menu bar, admins don't see the menu bar.
- Once a page is cached with admin menu bar (by admins), regular users see menu bar even though they shouldn't.
This could be solved by rendering hidden admin menu bar in all cases, but showing it later by JS. Is there a way to achieve this?
show_admin_bar(true), but that only shows the bar without any links. I would need this bar to render all admin links to be usable when unhiding it for the admins.