Magento 2 - Recently viewed product not working with FPCRecently Viewed not showing up when full page cache is enableSID in url shows as SID= and doesn't pass the id with FPCWhat does a theme needs to support Magento Enterprise, in particular FPC?Magento login not working properly with FPCMagento 2 - Navigation Menu Disappears when Flush Cacheturpentine for varnish recently viewed products not workingkeep recently viewed products for guest usersOverride recently viewed widget in magento 2Recently viewed products not showing for NOT LOGGED CUSTOMERS in magento 2Own recently viewed widget (magento 2)Get recently viewed product collection Magento 2.3.1

How do I tell my manager that he's wrong?

What does "rf" mean in "rfkill"?

Given what happens in Endgame, why doesn't Dormammu come back to attack the universe?

How to determine the actual or "true" resolution of a digital photograph?

Is it possible to Ready a spell to be cast just before the start of your next turn by having the trigger be an ally's attack?

Why does nature favour the Laplacian?

Unexpected email from Yorkshire Bank

Past Perfect Tense

Subtleties of choosing the sequence of tenses in Russian

Why do Ichisongas hate elephants and hippos?

Are Boeing 737-800’s grounded?

Any examples of headwear for races with animal ears?

What gives an electron its charge?

Illegal assignment from SObject to Contact

Please, smoke with good manners

Why does processed meat contain preservatives, while canned fish needs not?

What does YCWCYODFTRFDTY mean?

Volunteering in England

Airbnb - host wants to reduce rooms, can we get refund?

Is creating your own "experiment" considered cheating during a physics exam?

Feels like I am getting dragged in office politics

Why do TACANs not have a symbol for compulsory reporting on IFR Enroute Low Altitude charts?

Phrase for the opposite of "foolproof"

Were there two appearances of Stan Lee?



Magento 2 - Recently viewed product not working with FPC


Recently Viewed not showing up when full page cache is enableSID in url shows as SID= and doesn't pass the id with FPCWhat does a theme needs to support Magento Enterprise, in particular FPC?Magento login not working properly with FPCMagento 2 - Navigation Menu Disappears when Flush Cacheturpentine for varnish recently viewed products not workingkeep recently viewed products for guest usersOverride recently viewed widget in magento 2Recently viewed products not showing for NOT LOGGED CUSTOMERS in magento 2Own recently viewed widget (magento 2)Get recently viewed product collection Magento 2.3.1






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








1















Magento default functionality of recently viewed product uses the following event to save viewed history



catalog_controller_product_view


And it stores in following tables



report_viewed_product_aggregated_daily
report_viewed_product_aggregated_monthly
report_viewed_product_aggregated_yearly
report_viewed_product_index /*(Probably this one too)*/


It worked perfectly until you enable FPC the event catalog_controller_product_view would not work with FPC.



I know the event that will work with FPC. it is controller_front_send_response_before but the problem is, you can not get current product from $this->_registry->registry('current_product'); this will also stopped working with FPC.



My question is, how can we resolve this issue, how can we store recently viewed information in above tables while FPC is enabled.










share|improve this question






















  • This should help magento.stackexchange.com/questions/181827/…

    – Dava Gordon
    Apr 25 at 7:59

















1















Magento default functionality of recently viewed product uses the following event to save viewed history



catalog_controller_product_view


And it stores in following tables



report_viewed_product_aggregated_daily
report_viewed_product_aggregated_monthly
report_viewed_product_aggregated_yearly
report_viewed_product_index /*(Probably this one too)*/


It worked perfectly until you enable FPC the event catalog_controller_product_view would not work with FPC.



I know the event that will work with FPC. it is controller_front_send_response_before but the problem is, you can not get current product from $this->_registry->registry('current_product'); this will also stopped working with FPC.



My question is, how can we resolve this issue, how can we store recently viewed information in above tables while FPC is enabled.










share|improve this question






















  • This should help magento.stackexchange.com/questions/181827/…

    – Dava Gordon
    Apr 25 at 7:59













1












1








1








Magento default functionality of recently viewed product uses the following event to save viewed history



catalog_controller_product_view


And it stores in following tables



report_viewed_product_aggregated_daily
report_viewed_product_aggregated_monthly
report_viewed_product_aggregated_yearly
report_viewed_product_index /*(Probably this one too)*/


It worked perfectly until you enable FPC the event catalog_controller_product_view would not work with FPC.



I know the event that will work with FPC. it is controller_front_send_response_before but the problem is, you can not get current product from $this->_registry->registry('current_product'); this will also stopped working with FPC.



My question is, how can we resolve this issue, how can we store recently viewed information in above tables while FPC is enabled.










share|improve this question














Magento default functionality of recently viewed product uses the following event to save viewed history



catalog_controller_product_view


And it stores in following tables



report_viewed_product_aggregated_daily
report_viewed_product_aggregated_monthly
report_viewed_product_aggregated_yearly
report_viewed_product_index /*(Probably this one too)*/


It worked perfectly until you enable FPC the event catalog_controller_product_view would not work with FPC.



I know the event that will work with FPC. it is controller_front_send_response_before but the problem is, you can not get current product from $this->_registry->registry('current_product'); this will also stopped working with FPC.



My question is, how can we resolve this issue, how can we store recently viewed information in above tables while FPC is enabled.







magento2 event-observer full-page-cache recently-viewed






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Apr 25 at 6:19









Shoaib MunirShoaib Munir

2,68421032




2,68421032












  • This should help magento.stackexchange.com/questions/181827/…

    – Dava Gordon
    Apr 25 at 7:59

















  • This should help magento.stackexchange.com/questions/181827/…

    – Dava Gordon
    Apr 25 at 7:59
















This should help magento.stackexchange.com/questions/181827/…

– Dava Gordon
Apr 25 at 7:59





This should help magento.stackexchange.com/questions/181827/…

– Dava Gordon
Apr 25 at 7:59










0






active

oldest

votes












Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "479"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f272367%2fmagento-2-recently-viewed-product-not-working-with-fpc%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes















draft saved

draft discarded
















































Thanks for contributing an answer to Magento Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f272367%2fmagento-2-recently-viewed-product-not-working-with-fpc%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Sum ergo cogito? 1 nng

三茅街道4182Guuntc Dn precexpngmageondP