Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/parisek/commerce_order_revision_clear

Commerce order revision clear
https://github.com/parisek/commerce_order_revision_clear

drupal drupal-7 drupal-commerce php

Last synced: 18 days ago
JSON representation

Commerce order revision clear

Awesome Lists containing this project

README

        

Commerce order revision clear
===

This is lightweight module that solves issue that database is getting really huge because we are storing all revisions for commerce orders. In our commerce site we have orders with hundreds of revisions.

How it works?
===
We are using [https://www.drupal.org/project/commerce/issues/2442049](https://www.drupal.org/project/commerce/issues/2442049) code from provided patch to leverage Entity API module. With every CRON run we delete 50 oldest revisions which are older than 30 days. This module has no configuration, but could be easily customized in code for your special needs.

**Do not test it in production and backup your database first**

Author
===
Petr Parimucha
[https://pari.cz](https://pari.cz/en)