https://github.com/zao-web/a-healthier-option
Enjoy a healthier options table.
https://github.com/zao-web/a-healthier-option
Last synced: 6 months ago
JSON representation
Enjoy a healthier options table.
- Host: GitHub
- URL: https://github.com/zao-web/a-healthier-option
- Owner: zao-web
- License: gpl-3.0
- Created: 2017-04-07T14:13:30.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-12-28T01:04:27.000Z (almost 7 years ago)
- Last Synced: 2024-02-15T16:33:24.846Z (over 1 year ago)
- Language: PHP
- Size: 39.1 KB
- Stars: 41
- Watchers: 8
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-wp-developer-tools - A Healthier Option - Ever had an unwieldy options table slow you down and cause crazy errors? Maybe you have, but don't know it? A Healthier Option helps your options table get back into shape. (WordPress Plugins)
README
# A Healther Options Table
By default, the wp_options table in WordPress works great for storing options.
Where it gets unweildy and problematic is in a few scenarios. Most good hosting
citizens enable an external persistent object cache, like Memcached or Redis.
By default these object cache stores limit their storage buckets to 1MB each.
This is generally sufficient. Where it becomes insufficient currently is with
autoloaded options.
When the alloptions cache bucket exceeds 1MB, it no longer works, and this can
cause things to break in interesting and unexpected ways. This plugin aims to
inform site administrators when there is an issue, empower them to fix the issue manually - and ideally, fix it for them without them having to worry about it.
# TODOS
- Support Memcached + Redis bucket checking out of the box (memcache_get_stats)
- add daily cron check to run cleanup routines.
- Add admin bar alert (ala comments)
- Nonce checks etc.
Helpful : https://10up.com/blog/2017/wp-options-table/
# NOTE
This plugin was originally developed with the intention of being a test. We give back-end developer candidates access to this plugin as a three-hour trial project. They refactor it, we judge their skill based on how they do. The `master` branch of this _will_ be updated and refactored, and the `to-be-refactored` branch will essentially live on as this test. You will note - they are basically the same right now.