The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

add_action, processed in background (1 post)

  1. johnmontfx
    Posted 3 years ago #

    I've searched for this, but the number of posts with "background" (as in image) hasn't led me to my answer...

    I would like to trigger a rather lengthy function (lengthy from a loop/database processing perspective) after a post save. This takes about :12 to run, so I'd rather not have the admin UI hang when doing so.

    Is there a way to add the action that is not just low priority, but runs in the background or asynchronously?

    My alternative workaround is to have the action add a process to the cron queue to run the function..this way it would run shortly after the post save.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.