Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/peterupfold/hub-data-tidy
Provides a user interface for tidying old MIS data to keep the WordPress database running smoothly.
https://github.com/peterupfold/hub-data-tidy
Last synced: 20 days ago
JSON representation
Provides a user interface for tidying old MIS data to keep the WordPress database running smoothly.
- Host: GitHub
- URL: https://github.com/peterupfold/hub-data-tidy
- Owner: PeterUpfold
- License: gpl-2.0
- Created: 2019-02-20T12:19:25.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-02-28T13:57:29.000Z (almost 5 years ago)
- Last Synced: 2024-11-08T09:51:05.532Z (2 months ago)
- Language: PHP
- Size: 21.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Hub Data Tidy
Designed for use with a [Parent Progress View](https://github.com/TestValleySchool/moodle-report-parentprogressview) deployment where a WordPress site "The Hub"
is used as a data warehouse for data extracted from a ~~popular~~ common Management Information
System (MIS). This plugin allows us to periodically tidy the data warehouse WordPress instance
of old data to ensure it stays performant.This plugin enumerates custom post types and permits the removal of old content based on
date or association with a postmeta object with a given prefix (used to clear data associated
with a username prefix).## Usage
A WP-Admin interface is provided which appears upon plugin activation.
Additionally, a WP-CLI interface is provided which improves the experience for very large
batch sizes or for automated use.NAME
wp hub-data-tidy
DESCRIPTION
Process the tidying up of Hub data through the WP_CLI interface.
SYNOPSIS
wp hub-data-tidy
--wp-post-types=
: A comma-separated set of the WordPress post type slugs to tidy (e.g. 'achievements,attendance-marks')--batch-size=
: A maximum number of posts to process in this execution run of the command.--simulate=
: Simulate mode is on by default. Pass 'off' or 'false' to actually remove content from WordPress.--attached-username-prefix=
: Only remove WP posts that have a meta value such that they are associated with usernames beginning with this string.--date=
: A YYYY-MM-DD string, where any content that was created on or after this date will not be selected for removal.## Licence
Hub Data Tidy is available under the terms of the GNU General Public License as published by the Free Software Foundation, version 2 of the License.
Please see `LICENSE.md` in this repository for full licence text.