Home

 

Purge forum trash


Overview

Edit settings in the communities-config.xml file to configure the discussion forum trash purge schedule. You can define the interval at which the task runs by configuring the interval property, which uses a Cron schedule.

To edit configuration files, use the IBM WebSphere Application Server wsadmin client. See Start the wsadmin client for details.

The trash purge job is scheduled to run periodically to permanently remove content deleted from a community's discussion forum from the trash.

A Cron schedule has six parts separated by a space. The six parts specify...

"*" means all values, for example, all days of the week. The seconds must always be specified as zero. For example...

..means that the task is run daily at...

..and...

..means that the task is run on Sunday mornings at 2:30 a.m.


Configure the ForumPurgeTrash task

  1. Use the wsadmin client to access and check out the Communities configuration files.

    1. Access the Communities configuration files:

      If you are asked to select a server, you can select any server.

    2. Check out the Communities configuration files...

      CommunitiesConfigService.checkOutConfig("<working_directory>", "cell_name")

      where:

      • <working_directory> is the temporary working directory to which the configuration XML and XSD files are copied. The files are kept in this working while you make changes to them.

      • cell_name is the name of the WebSphere Application Server cell hosting the Lotus Connections feature. This argument is required even in stand-alone deployments. If you do not know the cell name, do one of the following to determine it:

        • Stand-alone deployment: Look at the name after the following in the file system:

            WAS_HOME\profiles\profile_name\config\cells\

        • Network deployment: Type the following command while in the wsadmin command processor:

            print AdminControl.getCell()

      For example:

        CommunitiesConfigService.checkOutConfig("/opt/my_temp_dir", "CommServerNode01Cell")

  2. To view the current configuration settings...

    CommunitiesConfigService.showConfig()

    After updating any of the configuration settings, you can use this command again to display your updates.

  3. To change display settings for Communities...

    CommunitiesConfigService.updateConfig("<property>", "<value>")

    where:

    • <property> is one of the editable Communities configuration properties.

    • <value> is the new value with which you want to set that property.

    The following table displays information about the ForumPurgeTrash property and the type of data that you can enter for it.

    Header Header
    task.ForumPurgeTrash.interval Specifies the interval at which the forum purge trash task runs.

    When you change the interval property, the new schedule is registered the next time that Communities is started on any server in the Communities cluster (if there is one). For example:

      CommunitiesConfigService.updateConfig("task.ForumPurgeTrash.interval", "0 0/15 * * * ?")

  4. After making changes, check the configuration files back in, and do so during the same wsadmin session in which you checked them out for the changes to take effect. See Applying property changes for information about how to save and apply your changes.

 

Related tasks

Administer discussion forums
Apply property changes
Manage scheduled tasks
Delete discussion forum topics

+

Search Tips   |   Advanced Search