Magento 2 - LiteMage Cached Objects always 0

Ian

New Member
#1
Hi,

I have installed litemage 2 on our magento 2.
Under system -> Cache Management -> LiteMage Cached Objects
The number is always 0. This means litemage is not caching anything.
upload_2017-4-16_16-0-15.png

On your page, you mentioned that running the command below at /app and /vendor.
grep -r cacheable * | grep xml | grep false
I have changed all xml files with cacheable="false" to cacheable="true" in the app folder subdirectories.
However, if you run the above command in /vendor folder, there is a long list including those magento default modules with cacheable="false" and tons of javascript.
Please see below.
upload_2017-4-16_15-58-24.png

How is it possible to change these to cacheable="true"?
Is there something that I have done incorrectly that makes litemage cacheable objects always zero?

Please help.

Thank you.
Ian
 

Lauren

LiteSpeed Staff
Staff member
#2
Ian,
You cannot simply change cacheable=false to true. You need to examine which plugins are doing that for default handle. If it's in default.xml, then it affects all page. You need to check for that plugin, why it has that setting. If you change cacheable=true, it may break the plugin functionality. So you should either not use that plugin, or understand the consequence of changing it. You can also try to ask that plugin developer, why it sets that way.
Lauren
 

Ian

New Member
#3
Hi Lauren,

Is there any way to bypass this setting and force litemage to cache? Are you able to do this setting in the next magento module release?
It is very difficult to troubleshoot which plug in causes this.
If we have this setting, we can enable litemage cache and see if it's causing any problems. If no problem, then great!

Thank you.
Ian
 

Lauren

LiteSpeed Staff
Staff member
#4
There's no way for litemage plugin to not honor other people's config.
Code:
grep -r cacheable * | grep 'default.xml' | grep false
You only need to check those in default.xml, and check which plugin. you can either change to "true" or disable that plugin.
 

Ian

New Member
#5
We still can't get this to work. I do not understand why Magento normal file cache, Fastly CDN cache are able to cache full page but litemage is not able to cache.
Instead of following the rules cacheable="false", why not give us an option to add/remove url that exempted from caching.
For example sucuri and cloudflare (by pagerules) has options for us to key in the url that should not be cached.
 

Pong

Administrator
Staff member
#8
Please make sure your LSWS upgraded to latest version 5.4.9 build 3. If still happens, please log a ticket with us with tmp root ssh login and your magento admin login, and we will check for you.
 
#10
Hi I have the exact same issue as anant101289 above

I can get the x-litespeed-cache: hit,litemage but not getting any number inside "LiteMage Cached Objects". Always just showing 0

Anything you can assist with on this?

1692712657500.png
 
#11
We had the same issue. We were running LiteMage 2.2.1 but when we downgraded to LiteMage 2.1.9 the LiteMage Cached Objects displayed correctly.
 
Top