exp:cleanuprss
Kürzt per RSS importierte Inhalte und behält die neuesten Einträge jedes aktiven Imports (Probelauf, außer mit --apply).
Skript bin/php/cleanuprss.php, Code in kernel/private/classes/commands/cleanuprss.php. Führen Sie es im Wurzelverzeichnis der Installation aus, als der Benutzer, unter dem der Webserver läuft:
./console exp:cleanuprss --help
php bin/php/cleanuprss.php --helpHilfetext
Was --help ausgibt, so wie der Befehl es schreibt:
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 --applyOptionen
| Option | Wert | Hilfe |
|---|---|---|
--apply | Die Einträge entfernen (Standard ist ein Probelauf, der sie auflistet und nichts entfernt) | |
--dry-run | Der Standard, beibehalten für Skripte, die die Option übergeben: auflisten, was entfernt würde, nichts entfernen | |
--keep | erforderlich | So viele Einträge pro Feed behalten statt der konfigurierten Anzahl |
Aus den Optionsdefinitionen im Code gelesen (startup(), getOptions(), options() oder ezcConsoleOption). Jedes Skript nimmt außerdem die Standardoptionen des Skript-Frameworks (--help, --siteaccess, --debug, --quiet, --allow-root-user ...).
Siehe auch
Erzeugt von ./console exp:help:examples --language=ger-de aus bin/php/cleanuprss.php, kernel/private/classes/commands/cleanuprss.php. Bearbeiten Sie diese Seite nicht: Ändern Sie die Quelle oder die deutsche Übersetzung und erzeugen Sie sie neu (wie). Freie Dokumentation: GFDL 1.3 oder später.