Skip to the content
Documentation

exp:cleanuprss

No ratings yet

Available since Exponential 6.0.15 (in development, not in a release yet).

Summary

Trim RSS-imported content, keeping the newest items of each active import (dry run unless --apply)

Usage

./console exp:cleanuprss [options]
php bin/php/cleanuprss.php [options]

Help

The output of ./console help exp:cleanuprss (the script run with --help), without the standard options:

Usage: bin/php/cleanuprss.php [OPTION]...
Exponential RSS Import Cleanup
Keeps the newest items of each active RSS import and removes the rest.

Configured in content.ini [RSSImportCleanupSettings]; it removes nothing
until that names the classes it is allowed to remove.
Without --apply nothing is removed: the script lists the items it would remove.
--dry-run is still accepted and means the same as no flag; --apply together with
--dry-run is a usage error (exit 2). The cronjob part cleanuprss removes as before.

./bin/php/cleanuprss.php
./bin/php/cleanuprss.php --apply


Options:
  --apply       Remove the items (the default is a dry run that lists them and removes nothing)
  --dry-run     The default, kept for scripts that pass it: list what would be removed, remove nothing
  --keep=VALUE  Keep this many items per feed instead of the configured number

Options

Option Value Description
--apply - Remove the items (the default is a dry run that lists them and removes nothing)
--dry-run - The default, kept for scripts that pass it: list what would be removed, remove nothing
--keep required Keep this many items per feed instead of the configured number

Standard options

Every script also takes the standard options of the script framework: --help, --quiet, --siteaccess, --debug, --colors, --no-colors, --logfiles, --no-logfiles, --verbose and --allow-root-user.

Source

bin/php/cleanuprss.php, kernel/private/classes/commands/cleanuprss.php

See also

Generated example: exp:cleanuprss

Added to the reference for Exponential 6.0.15.

Contributors

Comments

Add a comment

Comments are read by a moderator before they appear.