GP History Limiter

Keep your GlotPress database clean, fast, and efficient.

GlotCore History Limiter is a lightweight plugin that automatically controls translation history in GlotPress. By limiting the number of waiting and old entries per string, it prevents unnecessary data buildup and keeps your translation system optimized.


Why use it?

Over time, translation projects accumulate large numbers of revisions. This leads to:

  • Slower database performance
  • Cluttered translation history
  • Increased storage usage

GlotCore History Limiter solves this by enforcing smart limits on translation entries.


Key Features

🔹 Automatic history limiting

  • Controls both waiting and old translations per string
  • Ensures only the most relevant entries are kept

🔹 Smart revision management

  • Keeps the newest translations active
  • Automatically moves older entries to old status
  • Removes the oldest entries when limits are exceeded

🔹 Multi-user aware

  • Fair handling of multiple contributors
  • Prevents excessive waiting entries across users

🔹 Zero configuration required

  • Works out of the box
  • Default limit is optimized for most projects

How it works

  • The newest translation is always preserved
  • Older translations are gradually downgraded
  • Excess history is automatically cleaned up

This ensures a balance between history visibility and database performance.


Configuration

You can easily customize the history limit:

Option 1: wp-config.php

define( 'GLOTCORE_HISTORY_LIMIT', 3 );

Option 2: Filter hook

add_filter( 'glotcore_history_limit', function( $limit ) {
return 3;
});

Repository: https://github.com/meloniq/gp-history-limiter/

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.