Server side action (SSA) fast on dev, slow on live

Is anyone experiencing slow SSA from plugins only on live but not on dev?

I’ve created an app with a custom plugin. The plugin has a SSA that returns simple data. It has been working perfect in dev but in live version it seems to do a pause (30-50 seconds) before it triggers the SSA. Once it triggers it the server replies in miliseconds.
I’ve tested it adding a new SSA that just returns the number 8 without any processing and same behavior.

any idea? please help

There is a warmup time for SSAs, which you’re likely encountering. If nobody in your app has run the SSA, it’ll take a while to start up for the first time, but subsequent runs will be faster.

is not that, it takes more than 30 seconds and also if it does it all the time, if I run it and run it again it takes so long again

I’ve moved the SSA from “when page is loaded” to “when X is visible” and it works perfect now.

This topic was automatically closed after 14 days. New replies are no longer allowed.