Cache problems getting bigger and bigger

hi how do i best add a cronjob for the cache directory in Direct Admin

als the sites cache is filling up to manual clean them is sometimes a headage

thx guys

If you want to clear cache by cron (e.g. at night), please call the following URL in the cron task

https://www.your_domain.com/your_admin.php?cc&ctpl

1 Like

hi thx
yes tryed this sometimes it dont work
there is no way to cronjob delete the directory

It should work. Tested for years

1 Like

…or delete content of /var/cache directory

this is know but sometimes to big volume
have many shops so like to have this automatich than manual

Then set up a cron to remove the files instead of using the link.

rm -rf /[your path to]/var/cache/*