Laravel/Disable caching

From Aimeos documentation

Laravel
Other languages:
English 100%


2016.x version

During development it's very useful to disable the internal content caching done by the Aimeos package. By default, the following output is cached:

  • HTML header and body of each component by the Aimeos caching framework
  • Small basket and last seen products in the session of the user

Thus, new content is only generated if you flush the caches and/or delete the frontend cookie in your browser.

The basket is also updated automatically if you add products to or delete products from the basket resp. modifying the basket content in another way.

To disable the content caching completely, add this to your config/shop.php file:

  1. 'madmin' => array(
  2.     'cache' => array(
  3.         'manager' => array(
  4.             'name' => 'None'
  5.         ),
  6.     ),
  7. ),

Don't disable the content caching in production environments! This can have a severe performance impact!

Since core version 2015.01 you can also disable caching user related data in the sessions via the client/html/basket/cache/enable configuration option.