Step 2: Configure the cache
You can specify frontend and backend cache configuration options in env.php
or di.xml
. This task is optional.
env.php
example:
'frontend' => <frontend_type>,
'frontend_options' => [
<frontend_option> => <frontend_option_value>,
...
],
'backend' => <backend_type>,
'backend_options' => [
<backend_option> => <backend_option_value>,
...
],
where
-
<frontend_type>
is the low-level frontend cache type. Specify the name of a class that is compatible withZend\Cache\Core
.
If you omit<frontend_type>
, Magento\Framework\Cache\Core is used. -
<frontend_option>
,<frontend_option_value>
are the name and value of options the Commerce framework passes as an associative array to the frontend cache upon its creation. -
<backend_type>
is the low-level backend cache type. Specify the name of a class that is compatible withZend_Cache_Backend
and that implementsZend_Cache_Backend_Interface
. -
<backend_option>
and<backend_option_value>
are the name and value of options the Commerce framework passes as an associative array to backend cache upon its creation.
See the Laminas documentation for the latest Zend information.