litespeedtech / litespeedtech/lscache-drupal

Does not seem to honour ESI configuration

Open
#40 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
15
Forks
19
PR merge metrics
No merged PRs in 30d

Description

We re using Drupal 10 and a custom Boostrap 5 theme and we have tried over and over to use this LiteSpeed Cache module every time a newe version comes out but we have never succeeded with it.

We thought it was was time we put pen-to-paper so that someone wise in the community can put us right!

Her goes...

WHEN the LiteSpeed cache kicks in with our shared hosting it is absolutely spectacular and we get pages served in a fraction of a second!

BUT we have never been able to use it because it does not behave as we understand and expect.

### SYMPTOMS
For logged in contributor users, TWO things should change:

1) In the horizontal menu across the top (`id=block-bit-by-bit-horizontalmenu`), the last menu item should change to 'Me' and led to a submenu as shown below.

2) The Admin Toolbar (`id=toolbar-administration`) should show on the lefthand side as shown below.

![Image](https://github.com/user-attachments/assets/16c4bf23-78d4-4cc1-9eb8-40f79283adf3)

### IT WORKS and then it DOESN'T WORK
**Sometimes this works fine** and then we switch to another tab (within the same session) where both elements should appear the same for the logged-in user but we get neither as below...

![Image](https://github.com/user-attachments/assets/81bf3894-d0be-474b-9032-e6983699507e)

No amount of browser cache-clearing makes any difference.

### CONFIGURATION
As far as we understand it, if we want both those blocks to be considered as ESI blocks then we should configure the LSCache module as below...

![Image](https://github.com/user-attachments/assets/989159f4-7639-4094-b86f-733a93a8c614)

### HELP and ADVICE
Can anyone please offer some help and advice as to whether we have simply misunderstood or whether we have configure the module wrongly.

The facility to be able to use the LS Cach reliable would fundamentally change the end users' experience and so we are very keen to try to get to the bottom of this.

Thank you

Contributor guide

No contributing guide indexed for this repository

Research direction

No source file or test is identified. Start by reproducing the Drupal 10 setup with the reported ESI configuration and logged-in contributor behavior across tabs; done means the horizontal menu and Admin Toolbar reliably appear for that user without relying on browser cache clearing.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.