pluginkollektiv / antispam-bee

„... another popular solution to fight spam is Antispam Bee“ – Matt Mullenweg, Q&A WordCamp Europe 2014
https://wordpress.org/plugins/antispam-bee/
GNU General Public License v2.0
162 stars 26 forks source link

Is autoloading options necessary? #590

Open Zodiac1978 opened 4 months ago

Zodiac1978 commented 4 months ago

We use two options: antispam_bee and antispambee_db_version - both are autoloaded.

In the light of optimizing the crowded autoloaded options (See: https://wordpress.org/plugins/aaa-option-optimizer/) we could think about disabling the autoload feature. Most requests will not need them.

Additionally we could add Antispam Bee (and our other plugins) to the known plugin list of this plugin: https://github.com/Emilia-Capital/aaa-option-optimizer/blob/develop/known-plugins/known-plugins.json

See also: https://developer.wordpress.org/reference/functions/add_option/ https://developer.wordpress.org/reference/functions/update_option/

Zodiac1978 commented 3 hours ago

More help: https://felix-arntz.me/blog/autoloading-wordpress-options-efficiently-and-responsibly/