Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,059 of 9,059 pages
About the help in other languages
All help pages

content.ini [RSSImportCleanupSettings]

The settings of [RSSImportCleanupSettings] in content.ini: Enabled, KeepPerFeed, ClassIdentifiers, CleanupUser, LogFile, MoveToTrash

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/examples/ini-settings/content/RSSImportCleanupSettings.md

On this page

content.ini [RSSImportCleanupSettings]

The block [RSSImportCleanupSettings] of settings/content.ini, with 6 setting(s).

Never edit settings/content.ini itself: an update replaces it. Put the settings you change in an override, which wins over the shipped file:

  • settings/override/content.ini.append.php for every siteaccess,
  • settings/siteaccess/<siteaccess>/content.ini.append.php for one siteaccess,
  • extension/<extension>/settings/content.ini.append.php in an extension (read when the extension is active).

Enabled

Trims what the RSS import has created, keeping the newest items of each feed.

An import run adds an object for every item in the feed and never takes one
away, so a site importing a busy feed grows without limit. Run it from the
cronjob part 'cleanuprss', or by hand:

php bin/php/cleanuprss.php --dry-run

Nothing happens until Enabled is true AND ClassIdentifiers names at least one
class: this removes content, and on an installation that has not been set up
for it there is no safe guess about what may go.
Off until the site says otherwise.

Default: false.

<?php /* #?ini charset="utf-8"?
# settings/override/content.ini.append.php
[RSSImportCleanupSettings]
Enabled=false
*/ ?>

KeepPerFeed

How many items to keep per feed, newest first. Must be at least 1.

Default: 100.

<?php /* #?ini charset="utf-8"?
# settings/override/content.ini.append.php
[RSSImportCleanupSettings]
KeepPerFeed=100
*/ ?>

ClassIdentifiers

The classes that may be removed. Class identifiers, and nothing outside this
list is touched however old it is - so a folder or a page that happens to sit
in the destination is safe. Empty means nothing is removed.
Example:
ClassIdentifiers[]=article

Default: an empty list.

<?php /* #?ini charset="utf-8"?
# settings/override/content.ini.append.php
[RSSImportCleanupSettings]
# an empty "ClassIdentifiers[]" first replaces the shipped list; without it the items are added
ClassIdentifiers[]
*/ ?>

CleanupUser

Removing is permission checked, so it runs as somebody who may remove.

Default: admin.

<?php /* #?ini charset="utf-8"?
# settings/override/content.ini.append.php
[RSSImportCleanupSettings]
CleanupUser=admin
*/ ?>

LogFile

Where the run is recorded. Empty writes no file.

Default: rsscleanup.log.

<?php /* #?ini charset="utf-8"?
# settings/override/content.ini.append.php
[RSSImportCleanupSettings]
LogFile=rsscleanup.log
*/ ?>

MoveToTrash

Whether removed items go to the trash, where they can be recovered, or are
deleted outright. Trash on a busy feed is itself something to empty.

Default: true.

<?php /* #?ini charset="utf-8"?
# settings/override/content.ini.append.php
[RSSImportCleanupSettings]
MoveToTrash=true
*/ ?>

Generated by ./console exp:help:examples from settings/content.ini. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x