On 7/5/2020 at 5:20 PM, Prestafan33 said:
I found your module and wanted to check if it works in the same way as my own small, raw module.
Since you use the same methods:
Tools::clearSmartyCache(); Tools::clearXMLCache(); Media::clearCache(); Tools::generateIndex();
I wonder it this solution really works.
After launching this by invoking proper url or through cron, the /var/cache/prod isn't flushed, and all files inside remain.
The only difference is index file that is being somehow refreshed or reindexed.
Is that supposed to be so? According to clear cache button in backoffice this isn't working the same, as it doesn't flush the var/cache/[prod] directory.
I'm wondering about adding a onliner bash script and invoke it through cron, or just delete the directory using php.
But still I'm not sure how above mentioned methods work.