cancel
Showing results for 
Search instead for 
Did you mean: 

Captcha Base folder Large Capacity

SOLVED

Captcha Base folder Large Capacity

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

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Captcha Base folder Large Capacity

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


View solution in original post

4 REPLIES 4

Re: Captcha Base folder Large Capacity

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


Re: Captcha Base folder Large Capacity

Hi @gelanivishal

 

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

Re: Captcha Base folder Large Capacity

can we delete these captcha from the cpanel folder option. is there any effect to delete all???

because captcha take 15GB space. 

Re: Captcha Base folder Large Capacity

@mrmoonbutt5c24 You can delete the content of the folder, it will not
effect anything.

Please note, make sure that cron jobs are running on your server, since
that was the problem for me that caused the captcha files to stay there and
not cleaned up automatically.