It’s necessary for plugins using Really Simple CAPTCHA (in this case, newsletter) to clear theier captcha folder periodically, since CAPTCHA files remain if they are not answered. $captcha->cleanup()
is available for this.
Hi
Thanks for your reply.
Im not really a programmer, i can fiddle with code a bit, im a designer, html, css.
Where would i put that code or what would i do with it?
I all,
I have the same two plugins causing the same problem. So this could be the way Tribulant’s Newsletter plugin in uses Really Simple Captcha?
If so, I need the same fix.
Thanks,
Marty
Good day,
We are working on implementing this change into the WordPress Newsletter plugin, sorry for any inconvenience caused.
For now, you can open the ‘wp-mailinglist/views/default/widget-front.php’ template file and add the $captcha -> cleanup() like this: http://screencast.com/t/mqSnlfWG
<?php $captcha -> cleanup(); ?>
Thank you for your business and support!
All the best,
Antonie
Antonie
Thanks but im not sure thats working.
At what stage does it clean the temp files.
I have bought 5 versions of the newsletter from you, all running on the same server and its a mamoth task to keep on top of this.
Ive put the code in like you suggested but im still seeing tmp files appear?
Any advice please…
Neil
ps. On the version i have put this on as well its on line 172 NOT 188 like your screen image.
and its not working, still 2 files each page load. Ive just cleaned out 230,000 file…!!!
how important is the index . p h p file in there as there is nothing in the file apart from
php start
// Silence is golden.
php end
As i can set up a cron job to delete the files hourly
any help appreciated
Thank you for your responses.
If you look in the really-simple-captcha/really-simple-captcha.php file, you’ll see the cleanup() function only removes files older than 60 minutes. It is the first and only parameter of the function.
You can pass a 1st parameter with a numeric value like 1 for example, like this:
<?php $captcha -> cleanup(1); ?>
You’ll put this code in the same place, like this: http://screencast.com/t/WwF0NaiFQ
We have tested this and already applied it to our latest development build which will be released soon.
All the best,
Antonie