amforms icon indicating copy to clipboard operation
amforms copied to clipboard

How to set up auto cleaning cronjob?

Open groe opened this issue 7 years ago • 4 comments

Hi there!

I don't fully understand how to use the new "Clean up submissions" feature from 1.9.0. It's enabled by default; do I have to set up anything else, like an actual cronjob? If so, how?

Thank you!

Benjamin

groe avatar May 16 '18 12:05 groe

Set up a cronjob on your hosting platform, that calls the clean up action (actions/amForms/submissions/cleanUp) from the submissions controller. The CP settings define whether or not it will do anything which old submissions should be deleted.

hubertprein avatar May 22 '18 07:05 hubertprein

Works, thank you!

Have you considered adding this to the README? Maybe with an example crontab entry? I can make a PR if you're fine with it.

groe avatar May 22 '18 10:05 groe

Glad you got it working :)

I'll accept the PR if you have the time to add it there.

hubertprein avatar May 22 '18 10:05 hubertprein

Whoops that took a while :grimacing:

Here's the PR: #185

groe avatar Jun 21 '18 16:06 groe