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

New drush command to batch purge old messages. #23

Open
wants to merge 1 commit into
base: 7.x-1.x
Choose a base branch
from

Conversation

JordanMagnuson
Copy link

I have a site with ~500,000 messages that have never been purged. I want to start purging old messages, but there is no way currently to batch purge.

I have thus created a drush command, message-purge to batch purge old messages.

I have used this new command successfully on my live site to purge over 400,000 messages.

Please review and merge if the pull request is acceptable.

*/
function message_drush_command() {
$items = array();
$items['message-purge'] = array(

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New line here.

@RoySegall
Copy link

Could be a nice feature. Two things:

  1. Message UI allow you delete messages via the UI in batches.
  2. Please add tests for this one.

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

Successfully merging this pull request may close these issues.

3 participants