21293 Posts in 5733 Topics by 2602 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 161 Views |
-
cleaning 'history' out of the database

13 February 2012 at 4:40pm
Hello,
I'm working on clients site, the 'SiteTree_versions' table has 55,000 entries and is 86mb. The site has maybe 100 pages, but some are long and updated regularly.
I don't think the client even know about the history options, and probably don't need to keep copies going back years.
It would be nice if there was a way to clear all but say the last 5 version....
any ideas?
-
Re: cleaning 'history' out of the database

13 February 2012 at 9:37pm
https://github.com/silverstripe-labs/silverstripe-recipes/blob/master/model/tools/SanitiseTasks.php
the above might get you started...
| 161 Views | ||
|
Page:
1
|
Go to Top |


