Version Manager

In addition to explicit purging by using the purge tool, the Version Manager can be configured to purge old versions when new versions are created.

To configure the Version Manager, create a configuration for:

PID com.day.cq.wcm.core.impl.VersionManagerImpl

The following options are available:

  • versionmanager.createVersionOnActivation (Boolean, default: true)
    Specifies whether to create a version when pages are activated.
    A version is created unless the replication agent is configured to suppress the creation of versions, which is honored by the Version Manager.
    A version is created only if the activation happens on a path that is contained in versionmanager.ivPaths (see below).

  • versionmanager.ivPaths(String[], default: {"/"})
    Specifies the paths on which versions are implicitly created on activation if versionmanager.createVersionOnActivation is set to true.

  • versionmanager.purgingEnabled (Boolean, default: false)
    Defines whether to enable purging when new versions are created.

  • versionmanager.purgePaths (String[], default: {“/content”})
    Specifies on which paths to purge versions when new versions are created.

  • versionmanager.maxAgeDays (int, default: 30)
    On version purge, any version older than the configured value is removed. If the value is less than 1, purging is not performed based on the age of the version.

  • versionmanager.maxNumberVersions (int, default 5)
    On version purge, any version older than the n-th newest version is removed. If the value is less than 1, purging is not performed based on the number of versions.

  • versionmanager.minNumberVersions (int, default 0)
    The minimum number of versions that are kept regardless of the age. If the value is set to a value less than 1, no minimum number of versions is retained.

NOTE
It is not recommended to keep many versions in the repository. So, when configuring the version purge operation, be mindful not to exclude too many versions from the purge, otherwise the repository size is not properly optimized. If you keep a large number versions due to business requirements, contact Adobe support to find alternative ways of optimizing the repository size.

Combining Retention Options

The options defining how which versions should be retained ( maxAgeDays, maxNumberVersions, minNumberVersions), can be combined depending on your requirements.

For example, when defining the maximum number of versions to retain AND the oldest version to retain:

  • Setting:

    • maxNumberVersions = 7

    • maxAgeDays = 30

  • With:

    • Ten versions were made within the past 60 days
    • Three of those versions were created within the past 30 days
  • It means that:

    • The last three versions are retained

For example, when defining the maximum AND minimum number of versions to retain AND the oldest version to retain:

  • Setting:

    • maxNumberVersions = 3
    • maxAgeDays = 30
    • minNumberVersions = 3
  • With:

    • Five versions were made 60 days ago
  • It means that:

    • Three versions are retained

Purge Versions Tool

The Purge Versions tool is intended for purging the versions of a node or a hierarchy of nodes in your repository. Its primary purpose is to help you reduce the size of your repository by removing old versions of your nodes.

Experience Manager


Elevate and Empower Teams with Agentic AI for Exceptional Experiences

Online | Strategy Keynote | General Audience

Elevate and empower your CX teams with AI that transforms creativity, personalization, and productivity. Discover how Adobe is...

Tue, Mar 18, 1:00 PM PDT (8:00 PM UTC)

Register

3 Pillars of Purpose-driven Experiences: Trust, Data, and GenAI

In-person | Session | General Audience

Learn how leading B2B and B2C brands like AT&T and IBM are intersecting data, GenAI and trust to build “purpose-driven” experiences that...

Wed, Mar 19, 1:00 PM PDT (8:00 PM UTC)

Register

Connect with Experience League at Summit!

Get front-row access to top sessions, hands-on activities, and networking—wherever you are!

Learn more