/o/commerce-media/accounts/-1/images/123471944?download=true

Versions Limiter
123471915
Contact Sales
Description
Versions Limiter is a nonintrusive hook that allows you to limit the number of versions of the web contents.

You only need to set the "version.limiter.max.number.of.versions property" to the number of versions you want for your portal in your portal-ext.properties file (E.g: version.limiter.max.number.of.versions=3) and restart Liferay. That's all.

Features:

- When you publish a web content it'll check the number of versions of this content and it'll only keep the last "version.limiter.max.number.of.versions" versions
- Keep only the versions of a web content that you want.
- Transparent for the end-user.
- It doesn't overwrite any Liferay class or jsp.

Benefits:

- Save disk space in your database (especially in huge portals). Along time you can reach hundreds or thousands of versions of each web content . Are you sure you need so many versions? If the answer is no, this is your hook.
- Improve the performance of your portal. If your database is smaller its performance will be better. Pure logic. Believe me, you can reduce thousands and thousands of records in some database tables.

Developer

Iñaki Muros Martínez

Publisher Date

November 6, 2026


Deployment Method

Liferay PaaS

Liferay Self-Hosted


App Type

DXP

Version

1.1

Supported Versions

6.2

Standard Price

Free

Help and Support


Share Link