Save rule refresh method

I developed a win app to create, modify and delete promotions easily and intuitive for any user without knowledge about samba automatatiom using Action Adjust Order Price, basically links a predefined action to the rule of each promotion, it works as expected but at the end of the process in the app it executes a cache refresh and a logout and login in order to get the modifications in the terminal, if the refresh cache is not executed the modifications are not recognized in the terminal even after logout and login.

If I open any rule in manage and click in Save button it instantly recognize the changes, which method is fired when save rule button is pressed? Can it be available to used in another automation?