XF 2.3 webhooks, timing and criteria

eDaddi

Active member
I created a simple webhook to test with new posts. Ran a successful test and 5-10 min after disabling it, I'm still catching post events. How are those triggered? Cron? I was expecting them to be near instant.

I was looking into that ... when I noticed the 'criteria' column in the webhook table. Mine has a bunch I didn't enter, specifically all the commerce related ones:

{
"dbtech_ecommerce_download": {
"products": {
"rule": "product_id",
"data": {
"search_type": "include"
}
}
},
"dbtech_ecommerce_license": {
"products": {
"rule": "product_id",
"data": {
"search_type": "include"
}
}
},
"dbtech_ecommerce_product": {
"categories": {
"rule": "product_category_id",
"data": {
"search_type": "include"
}
}
},
"dbtech_ecommerce_rating": {
"products": {
"rule": "product_id",
"data": {
"search_type": "include"
}
}
},
"dbtech_ecommerce_version": {
"products": {
"rule": "product_id",
"data": {
"search_type": "include"
}
}
},
"thread": {
"nodes": {
"rule": "node_id",
"data": {
"search_type": "include",
"node_ids": [
"25"
]
}
}
}
}

I'd much rather only trigger the webhook for a specific thread. Can I manually add a rule like the last one to trigger when thread_id = 12345?
 
Back
Top Bottom