How to clear Lightning cache by CRON or from code?

You can clear Lightning cache by invoking catalog/controller/extension/lightning/clear_caches.php file. There are 3 ways to invoke it:

1) Execute is with PHP CLI (main way for CRON job):

php -f /path_to_your_shop_folder/catalog/controller/extension/lightning/clear_caches.php

2) Open URL.

3) Include the file in your PHP code:

include "catalog/controller/extension/lightning/clear_caches.php";
Created 2020-02-18