Hi,
I have noticed that the pub\media\captcha\base folder is 2.2GB in size.
when I opened the folder to see what was taking the space, noticed that there were 253,740 captcha generated pictures.
are these needed, or can be removed?
is there an option to be done automatically?
thanks
Solved! Go to Solution.
Hello @robertbits.
Make sure the cron Job is running.
Take a look: vendor/magento/module-captcha/etc/crontab.xml
<job name="captcha_delete_expired_images" instance="Magento\Captcha\Cron\DeleteExpiredImages" method="execute"> <schedule>*/10 * * * *</schedule> </job>
As we can see, Magento set up a cron to delete captcha images automatically. (This cron will execute at every 10th minute.)
--
If my answer is useful, please Accept as Solution & give Kudos
Hello @robertbits.
Make sure the cron Job is running.
Take a look: vendor/magento/module-captcha/etc/crontab.xml
<job name="captcha_delete_expired_images" instance="Magento\Captcha\Cron\DeleteExpiredImages" method="execute"> <schedule>*/10 * * * *</schedule> </job>
As we can see, Magento set up a cron to delete captcha images automatically. (This cron will execute at every 10th minute.)
--
If my answer is useful, please Accept as Solution & give Kudos
thanks for your reply. I checked the code and it was all there.
then I checked var/log/update.log and noticed that cronjob was giving me a memory error.
increased the php memory limit and problem solved.
thanks for your help
can we delete these captcha from the cpanel folder option. is there any effect to delete all???
because captcha take 15GB space.