Read More
Read More
Menu Close

    A Complete User Guide for Akeneo PIM Cache

    PIM Cache for Akeneo will dedicate a cache library for Akeneo API calls and help to boost and make it more stable, making it a great way to connect your PIM.

    Akeneo API Cache can drastically improve the performance of getting data by using the saved data of cache.

    It is a complete cache solution for all resources of the catalog structure that need to be defined when creating or updating a product or product model in Akeneo.

    Basic Requirement

    • This module works with Akeneo 3.0.x, 3.1.x,4.0.x, and 5.0.x.
    • This module is compatible with the Akeneo community and Enterprise(Flexibility) edition.
    • If you want to use this extension on Akeneo EE Serenity mode, please contact us.
    • For the Akeneo installation, your Akeneo server should meet these system requirements.

    Features

    • Drastically improve performances compared to naive API calls.
    • API Booster can drastically improve the performance of getting data.
    • API Booster performs the request for – categories, attributes, attribute options, attribute groups, association types, locales, channels, currencies, measurement families, media files, assets, reference entities.

    Installing Module for Version 4.0.x to 5.0.x

    1- Composer Installation

    Read This Blog

    2- Manual Installation

    Please follow these steps for installing the Akeneo API Booster module in your Akeneo PIM platform.

    Searching for an experienced
    Akeneo Company ?
    Read More

    1 – Unzip the respective extension zip then merge the “src” folder into the akeneo project root directory.

    Akeneo 4 src

    2 – Goto config/Bundles.php then add line:

    Webkul\ApiBoosterBundle\ApiBoosterBundle::class => ['all' => true],
    bundle command

    in the return array.

    3 – Copy the “config” folder into the akeneo project root directory for routing.

    config file

    – Run this command after ssh to your akeneo server by the terminal

    rm -rf ./var/cache/** && php bin/console wk-api-booster:setup:install

    5. If you are using php-fpm. Then you need to restart the php-fpm services and apache web server.

    For Akeneo 5

    sudo service php-fpm7.4 restart

    For Akeneo 4

    sudo service php-fpm7.3 restart

    Docker Installation Command :

    For Akeneo 5

    alias docker_php='docker-compose run -u www-data --rm php php';
    alias docker_yarn='docker-compose run -u node --rm node yarn';
    docker_php bin/console cache:clear --env=prod;
    docker_php bin/console pim:installer:assets --symlink --clean --env=prod;
    docker_php bin/console d:s:u --force;
    docker_yarn run webpack;
    docker_yarn run update-extensions;
    docker_yarn run less;

    For Akeneo 4

    alias docker_php='docker-compose run -u www-data --rm php php';
    alias docker_yarn='docker-compose run -u node --rm node yarn';
    docker_php bin/console cache:clear --env=prod;
    docker_php bin/console pim:installer:assets --symlink --clean --env=prod;
    docker_php bin/console d:s:u --force;
    docker_yarn run webpack;
    docker_yarn run less;

    Installing Module For Version 3.x

    Please follow these steps for installing the Akeneo API Booster module in your Akeneo PIM platform.

    1 – Unzip the respective extension zip then merge the “src” folder into the akeneo project root directory.

    2 – Goto app/AppKernel.php then add the line.

    new Webkul\ApiBoosterBundle\ApiBoosterBundle(),
    appkernel.php

    3 – Goto app/config/routing.yml then add these lines at top of the file.

    wk_api_booster:
          resource: "@ApiBoosterBundle/Resources/config/routing.yml"
          prefix:   /   
    routing.yml

    4 – Run this command after ssh to your akeneo server by the terminal

    rm -rf ./var/cache/** && php bin/console wk-api-booster:setup:install

    5. If you are using php-fpm. Then you need to restart the php-fpm services and apache web server.

    sudo service php-fpm7.2 restart

    Common Issues After Installation

    It might happen that even after proper installation, upon opening your Akeneo admin dashboard, you see a loading screen. In that case, do check for the following solution:

    • Webpack Installation: If you get the below error
    Webpack-error-3

    It means that web pack is not installed in your system. Run the following command.

    npm install --save-prod webpack
    npm install
    • Module routing.yml is not configured properly. Re-check the routing.yml file as mentioned in the 3rd step of Module Installation
    • Clear your browser cache.

    The workflow of API Booster

    After successful installation of the module PIM Cache for Akeneo, you will see the Webkul API Booster icon on the left side of the dashboard as shown below:

    Webkul-API-Booster-Configuration-1

    In this module all resources of the catalog structure that need to be defined when creating or updating a product or a product model :

    • Attribute
    • Attribute option
    • Category
    • Attribute group
    • Association type
    • Locale
    • Channel
    • Currency
    • Reference entity record
    • Asset

    While adding or updating data to a product, As the Akeneo API is really strict, you need to format that data correctly. Some of the examples are in the below image.

    Webkul-API-Booster-Configuration-2

    Now to set up the booster navigate to Webkul API Booster>>Connection Setup. After that, you have to select the title.

    The two most known cache solutions are probably Memcached and Redis. They both work well for our use case and both have their pros and cons

    connection-setup

    After entering the Title you need to enter the DNS String for the connection after that click on the Save button.

    Webkul-API-Booster-Configuration-1-1

    Support

    So, that was much about the User Guide of Akeneo API Booster for any queries or doubts reach out to us at [email protected]. You can also raise a ticket at our HelpDesk System.

    Please explore our Akeneo Development Services and Quality Akeneo Extensions.

    Current Product Version - 1.0.0

    Supported Framework Version - 3.x.x & 4.x.x & 5.x.x

    . . .
    Discuss on Helpdesk

    Leave a Comment

    Your email address will not be published. Required fields are marked*


    Be the first to comment.

    Back to Top

    Table of Content