MinnPost / object-sync-for-salesforce

WordPress plugin that maps and syncs data between Salesforce objects and WordPress objects.
https://wordpress.org/plugins/object-sync-for-salesforce/
GNU General Public License v2.0
93 stars 49 forks source link

Consider moving `is_push_allowed` into the queue processing function #477

Open jonathanstegall opened 2 years ago

jonathanstegall commented 2 years ago

Is your feature request related to a problem? Please describe. Currently the is_push_allowed method runs before adding a record to the plugin queue, so it's running right on the WordPress hook for create/update/etc. Depending on what this method is doing, it could potentially have a performance impact.

Describe the solution you'd like I think we should consider moving it into the queue processing. It already runs on a queue with pull requests since all of those are queued.