Skip to content

A Magento 2 Extension to clear cache with cronjob at specific times.

Notifications You must be signed in to change notification settings

mSengera/Magento-2-Clear-Cache-with-Cronjob

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

Magento 2

[Magento 2] Sengera/RefreshCacheWithCron

A extension to clear cache with the magento cronjob. You can specify the execution times in app/code/Sengera/RefreshCacheWithCron/etc/crontab.xml

Default is 2:30AM, every day.

Installation

  1. Copy the whole content of this module in your Magento installation directory.
  2. Run "bin/magento setup:upgrade"
  3. Depending on your Workspace: Run setup:di:compile and redeploy static-content if needed
  4. Clear cache (Console "bin/magento c:c" or via Backend)
  5. Set-up Cronjob in Magento, if not done yet. (https://devdocs.magento.com/guides/v2.0/config-guide/cli/config-cli-subcommands-cron.html)
  6. Test extension and be happy.

Best regards and happy coding!