Skip to main content

Advanced

This guide contains several tips and tricks for advanced usage of the Magento 1 integration in a Front-Commerce project.

Additional headers in Magento API calls

Since version 2.7.0

Front-Commerce allows you to send additional headers in all API calls. To do so, you must define the magento.api.extraHeaders (for storefront API) and/or magento.api.extraAdminHeaders (for admin API) configuration values from a configuration provider.

These additional headers could be useful if you want to add additional context to your queries, depending on the request or to detect Front-Commerce requests from your Magento server.

Clearing Front-Commerce cache

To clear the Front-Commerce cache, you can flush cache storage from the admin interface. To do this go to System > Cache Management then click on Flush Cache Storage button on the top right corner. (see below screenshot for more details).

http://magento1.localhost.me/admin

Clear front commerce cache