magento2-module-yotpo-reviews icon indicating copy to clipboard operation
magento2-module-yotpo-reviews copied to clipboard

Save API result with 404 answer to yotpo_rich_snippets cache table.

Open sergei-sss opened this issue 5 years ago • 1 comments

Currently only data from answer with status code "200" can be saved in yotpo_rich_snippets table:

                if ($res["status"] != 200) {
                    //product not found or feature disabled.
                    return [];
                }

If you'll save the products without reviews (404 status) in yotpo_rich_snippets table the quantity of API queries can be reduced and using the rich snippets API can be faster.

sergei-sss avatar Nov 12 '19 12:11 sergei-sss

@sergei-sss Thanks for the report! Let me check about this and get back to you.

yotpaul avatar Nov 17 '19 09:11 yotpaul