Coffee module results in an extra uncacheable AJAX request on every page

Created on 11 December 2024, 10 days ago

Problem/Motivation

Found via 📌 Add performance testing Active and some profiling.

Coffee module gets the menu structure from an AJAX callback, this AJAX callback is uncacheable, so it builds the menu tree every time. There doesn't appear to be much/any object caching happening either, so the callback takes 100ms in PHP apart from any network overhead.

Steps to reproduce

Install Drupal CMS, log in, visit a page, look at xhr requests in the network tab.

Proposed resolution

Remove coffee from the the drupal_cms_admin_ui recipe until 📌 Local Storage for Coffee Needs review is committed and in a stable release of Coffee.

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Active

Component

Base Recipe

Created by

🇬🇧United Kingdom catch

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024