Support » Plugin: Pods - Custom Content Types and Fields » Session files not deleted

  • Resolved xaome

    (@xaome)


    We noticed recently that Pods creates session files in the /tmp directory, but it doesn’t delete them afterwards, resulting in a massive accumulation of files (millions) that were very difficult to delete and was causing performance issues on the server (it’s on a Website with a lot of traffic). We didn’t noticed that problem sooner because the /tmp folder is one level above the site root, so we don’t see it when connecting by FTP.

    We created a CRON job to remove those files on a regular basis, but I was wondering why those files are created by the plugin but are not deleted afterwards and if there is a way to remove them without having to create a CRON job.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Scott Kingsley Clark

    (@sc0ttkclark)

    We are working on a solution to this in Pods itself, because we rely on sessions to support anonymous frontend form submissions. But we don’t have the ability to know whether those are being used or not so support is on by default so that if someone wants to do that — it would work.

    https://github.com/pods-framework/pods/pull/5626

    For now, the suggestion is to use define( 'PODS_SESSION_AUTO_START', false ); in your wp-config.php file.

    Hi Scott,

    Thanks a lot for your reply!

    I tried your solution and it seems to work 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.