RepoΒΆ

ASA 2 Repo menu

The “Repo” is ASA 2‘s item repository and one of the major features of the Premium version. It serves as a performance layer between your server and the Amazon API.

Technically the Repo is based on WordPress’s Custom Post Types, so the products contained in the Repo are stored in the WordPress database.

Note

ASA 2 uses its Repo as a performance layer between your server and the Amazon API.

Screencast



Repo flowchart

ASA 2 Repo diagram

Whenever ASA 2 tries to load a product, it checks if it exists in the Repo. If it does, it loads the product data from the Repo making a request to the Amazon API unnecessary.

ASA 2 Repo

Usage

By default, ASA 2 is configured to put a product into the Repo automatically when it gets used for the first time, e.g. when you save a post containing ASA 2 Shortcodes or a collection gets loaded for the first time. This behaviour can be adjusted to your wishes in the Repo.

But you can also fill the Repo in advance by manually adding new items or importing a bunch through the URL importer.

Read more about Repo Usage

Refreshing the repo items

If a Repo item is outdated, it will be refreshed automatically, at worst when a user requests a page.
Using the cronjob Repo items refresh, all repo items can be refreshed without user action on your server, e.g. at night. Together with the configurable lifetime of repo items, the ASA 2 Repo offers you all the flexibility you need, to prevent realtime Amazon API calls on user page access.

Therefore the Repo greatly improves page load speed even if you do not use any of ASA 2‘s Caching options.

Read more about Repo Refresh.

Advanced

As the Repo is based on Custom Post Types, you benefit from all the familiar WordPress features. You can use categories and tags on your products and load them dynamically with the shortcode [asa2_smart_collection]. You can insert a text or excerpt on a product and use it with the template placeholders {{ repo_content }} and {{ repo_excerpt }}.

Read more in Repo Advanced.

Learn more about ASA 2 Repo in the subchapters: