Support » Plugin: Really Simple CAPTCHA » Really Simple Captcha 1.6 Not Cleaning Temp Folder

  • I’m using version 1.6 with Gravity Forms and the temp folder to hold the captcha images isn’t being cleaned out as mentioned in the changelog. Sites using this plugin are loading slower and causing CPU/memory spikes unless we frequently empty the temp folders manually. These sites are running on a Windows Server, might this have something to do with it?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Takayuki Miyoshi


    What version of WordPress do you use?

    Some sites are 3.5.1 and some are 3.5.2. I just tried updating to 3.6 and the problem persists.

    Plugin Author Takayuki Miyoshi


    By the way, why do you use Really Simple CAPTCHA? Don’t you have CAPTCHA alternatives with Gravity Forms?

    Yes, but our clients much prefer solving simple math equations instead of trying to read blurry text.

    Plugin Author Takayuki Miyoshi


    Try using Really Simple CAPTCHA with the latest Contact Form 7. If you don’t see the issue with the two, it means the problem exists in Gravity Forms code (I myself don’t know about Gravity Forms code at all because it is a paid plugin).


    I wrote a PowerShell script to delete these captchas and just run it as a scheduled task, since I couldn’t figure out how to fix it in Gravity Forms.

    If you set the $path variable to your sites folder, you can run this script as a scheduled task. Let me know how it works for you, Nate.

    $path = Read-Host "Enter a path"
    $logfile = "c:\log\deleted_folders_$(Get-Date -f MM_dd_yyyy).txt" #This log file WILL be hundreds of megabytes if not more the first time you run it, be warned.
    dir $path -Recurse | Where-Object {$_.DirectoryName -match 'captcha-*' -and $_.FullName -match 'gravity_forms' -and ($_.Name -match '.txt' -or $_.Name -match '.png')} | Foreach-Object{
        Add-Content -Path $logfile -Value ("Name: {0} Date: {1}" -f $_.FullName,(Get-Date)) #Add to the log file
        Remove-Item -Path $_.FullName -Recurse -Force #Delete the item
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Really Simple Captcha 1.6 Not Cleaning Temp Folder’ is closed to new replies.