Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to set up auto cleaning cronjob? #178

Open
groe opened this issue May 16, 2018 · 4 comments
Open

How to set up auto cleaning cronjob? #178

groe opened this issue May 16, 2018 · 4 comments

Comments

@groe
Copy link

groe commented May 16, 2018

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

@hubertprein
Copy link
Contributor

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.

@groe
Copy link
Author

groe commented May 22, 2018

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.

@hubertprein
Copy link
Contributor

Glad you got it working :)

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

@groe
Copy link
Author

groe commented Jun 21, 2018

Whoops that took a while 😬

Here's the PR: #185

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants