added archive old posts activity
This commit is contained in:
parent
841c430ab4
commit
3f55240237
4 changed files with 106 additions and 43 deletions
|
|
@ -135,6 +135,8 @@ sub addWorkflow {
|
|||
$activity = $workflow->addActivity("WebGUI::Workflow::Activity::TrashClipboard", "pbwfactivity0000000004");
|
||||
$activity->set("title", "Move clipboard items older than 30 days to trash");
|
||||
$activity->set("trashAfter", 60*60*24*30);
|
||||
$activity = $workflow->addActivity("WebGUI::Workflow::Activity::ArchiveOldPosts", "pbwfactivity0000000005");
|
||||
$activity->set("title", "Archive old CS posts");
|
||||
WebGUI::Workflow::Cron->create($session, {
|
||||
title=>'Weekly Maintenance Maintenance',
|
||||
enabled=>1,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue