The Web Modules API allows you to define functions in your backend code that can be called from your site's frontend code. In order to call the function from the frontened, you need to define the necessary permissions.

With web modules you can also cache the return values of the backend functions in your code. This means you can temporarily store the result of the function for a specified period of time. Caching return values reduces response times, decreases server load, and enhances the overall user experience of site visitors by providing quicker access to previously generated data.

To use the Web Modules API, import the webMethod function and the Permissions enum from the wix-web-module module:


Learn more about working with the Web Modules API.

Was this helpful?