Language string missing when module set as ESI

I have a module that shows the "recently viewed" products from virtuemart, but when i put this module under ESI, whether in public or private mode.
The languages strings are lost, I think this is because this module use a plugin from the framework of my template itself, and those languages string (.ini files) are under the "administrator/language" folder.
So what I've done is simply to put an override for those "lost" strings in the frontend side language folder.

But do you think something could be done by the side of the litespeed cache plugin code for this issue ?
Or something else ?

Thanks for this great plugin in any case.

EDIT: Seems a little worse than I thought, once the module is cached, and set to private or public or nocache,
I get a 404 just because component not found.
Seems because if there's no recently viewed product, the ESI cache try to call the module anyway.
No fix at this time

EDIT2: ok, the fix at this time is to use "Advanced Module Manager" from R.L to have the "Hide if empty" option on the module, and set it to ESI with nocache option. Or is it related to JCH ????
But I am open to other solutions, because this module does not benefit from the cache.

EDIT3: Nope, still 404 despite the module is cached or nocache when the visitor has not yet seen a product recently viewed.
Last edited:

Wuhua Chen

Active Member
Staff member
It does not work correctly, this time I have no more 404, but on the other hand the design of the page is very disturbed when I choose the plugin processing option activated on the module under ESI.

I will open a ticket ASAP
(I just realise, Is not about language string here but about language code, so maybe my qestion is not in correct topic.)
Is there any solution to these?
My Cart module for Virtuemart also don't redirect to correct /sl/cart url when is module set as ESI.
1. When I add product to cart and check url (Visit cart button) I am redirected correctly /sl/cart
2. But as sun I go visit another page and then return to a cart modul url (Visit cart button) then a Language string missing. so url /cart and I get 404 error.
When I change ESI Module Type to Advanced, cart module just disappear from front page.