PressForward / pressforward

PressForward is a free plugin that provides an editorial workflow for content aggregation and curation within the WordPress dashboard. It is designed for bloggers and editorial teams who wish to collect, discuss, and share content from a variety of sources on the open web.
GNU Affero General Public License v3.0
120 stars 21 forks source link

Modules should not save to the database on every admin page load #1146

Closed boonebgorges closed 11 months ago

boonebgorges commented 1 year ago

The PF_Modal base class calls the module_setup() method on admin_init: https://github.com/PressForward/pressforward/blob/c4e4e572cd7710dd78a1e03fe95374426db94e5a/includes/module-base.php#L57

Each module's module_setup() then calls update_option(): https://github.com/PressForward/pressforward/blob/c4e4e572cd7710dd78a1e03fe95374426db94e5a/modules/comments/comments.php#L44

We should not do this.