我正在将Magento 2.3与Redis一起使用。问题是启用全页缓存后导航菜单消失了。当我禁用全页缓存时,将显示菜单。
app / etc / env.php
'cache' => [
'frontend' => [
'default' => [
'backend' => 'Cm_Cache_Backend_Redis',
'backend_options' => [
'server' => '127.0.0.1',
'database' => '0',
'port' => '6379',
'password' => 'xxxx'
]
],
'page_cache' => [
'backend' => 'Cm_Cache_Backend_Redis',
'backend_options' => [
'server' => '127.0.0.1',
'database' => '0',
'compress_data' => '0',
'password' => 'xxxx'
]
]
]
],
'session' => [
'save' => 'redis',
'redis' => [
'host' => '127.0.0.1',
'database' => '0',
'port' => '6379',
'password' => 'xxxx',
]
],
如果要启用整页缓存,该如何解决?
答案 0 :(得分:0)
解决方案
转到商店>配置>高级>系统>全页缓存>缓存应用程序>选择“内置缓存”
原因
如果出现菜单,则不会出现