Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/parisek/commerce_order_revision_clear
- Owner: parisek
- License: mit
- Created: 2019-02-19T12:56:32.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-02-19T14:37:33.000Z (almost 6 years ago)
- Last Synced: 2024-10-28T16:57:32.136Z (2 months ago)
- Topics: drupal, drupal-7, drupal-commerce, php
- Homepage:
- Size: 4.88 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)