Distributor: Add possibility to run 'push' actions in background

Created on 24 Jun 2019  ·  3Comments  ·  Source: 10up/distributor

Is your enhancement related to a problem? Please describe.

Currently the plug-in doesn't provide a way to run 'push' actions in background, which can be helpful in the cases when 'push' action has high resource consumption.

Describe the solution you'd like

Added hooks in the ajax_push(..) and send_notifications(..) functions to make possible to delay function logic execution and run in background.

Designs

Created a PR.

Describe alternatives you've considered

n/a

Additional context

n/a

enhancement

All 3 comments

Thanks again @avag-novembit, I've tagged this for review during our 1.5.0 release cycle, will get back to you with any questions on the PR then!

@avag-novembit we're looking to solve a similar issue related to reports on ACF issues as part of our 2.1.0 release so I'm moving this issue and related PR to that release as well.

@jeffpaul please assign all issues from @avag-novembit to me, I'll follow and work on them.

Was this page helpful?
0 / 5 - 0 ratings