verbb / formie

The most user-friendly forms plugin for Craft CMS.
Other
93 stars 68 forks source link

Data retention setting does not delete submissions after set duration is met #1922

Open ebarbe-globalia opened 2 weeks ago

ebarbe-globalia commented 2 weeks ago

Describe the bug

We have forms with "Data Retention" set at a number of 20 days, but data is never deleted when Craft Garbage collection is run.

Steps to reproduce

  1. Create a form with Data Retention setting activated
  2. Run Craft CMS garbage collection by running php craft gc
  3. Submissions past the data retention delay are not deleted

Note: Data is deleted correctly when running directly php craft formie/gc/prune-data-retention-submissions

Form settings

Craft CMS version

4.8.7

Plugin version

2.1.9

Multi-site?

No

Additional context

No response

engram-design commented 2 weeks ago

We actually run that same command through Craft's Garbage Collection system, and calling craft gc will force garbage collection to run. I'll investigate further, but at least on my end both ways are working...