WordPress.org

Forums

Really Simple CAPTCHA
Really Simple Captcha 1.6 Not Cleaning Temp Folder (7 posts)

  1. Nate Bognar
    Member
    Posted 1 year ago #

    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?

    http://wordpress.org/plugins/really-simple-captcha/

  2. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 1 year ago #

    What version of WordPress do you use?

  3. Nate Bognar
    Member
    Posted 1 year ago #

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

  4. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 1 year ago #

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

  5. Nate Bognar
    Member
    Posted 1 year ago #

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

  6. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 1 year ago #

    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).

  7. velinath
    Member
    Posted 1 year ago #

    Hi!

    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
    }

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Really Simple CAPTCHA
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.