[Skip to main content](#vessel-content)

#   Varnish Cache Integration - Recently Viewed Products

##

- **[NigelPeck](/forum/user/32534-nigelpeck "View NigelPeck's Profile")**
- [![NigelPeck's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar32534.jpg)](/forum/user/32534-nigelpeck "View NigelPeck's Profile") Topic Author
- [ Offline](/forum/user/32534-nigelpeck)

Less More

- Posts: 56
- Thank you received: 1
-
-
- [](https://www.sharphosting.uk/)
-

9 years 6 months ago -  9 years 6 months ago [\#269246](#269246) by [NigelPeck](/forum/user/32534-nigelpeck "View NigelPeck's Profile")  *[Varnish Cache Integration - Recently Viewed Products](/forum/26-product-category-display/890192-varnish-cache-integration-recently-viewed-products#269246 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.7.0  I'm working on integrating Varnish Cache, and researching options. I've seen the integration package from Massive Scale and looking at getting that, but also playing around with custom integration. Simply blocking cookies in Varnish seems to be effective for pages without user-specific content. I would like to find a way to load recently viewed products with JavaScript so the rest can come out of Varnish (which is all I need in this case). I'm wondering...  &#42; Does the recently viewed products feature work off the Joomla session?  &#42; Has there been any other work done in this area, apart from the package that Massive Scale offer?")* was created by *[NigelPeck](/forum/user/32534-nigelpeck "View NigelPeck's Profile")*

-- HikaShop version -- : 2.6.4
-- Joomla version -- : 3.7.0

I'm working on integrating Varnish Cache, and researching options. I've seen the integration package from Massive Scale and looking at getting that, but also playing around with custom integration. Simply blocking cookies in Varnish seems to be effective for pages without user-specific content. I would like to find a way to load recently viewed products with JavaScript so the rest can come out of Varnish (which is all I need in this case). I'm wondering...

- Does the recently viewed products feature work off the Joomla session?
- Has there been any other work done in this area, apart from the package that Massive Scale offer?

---

Professional website services including website management, Linux server admin and web hosting.
[ www.sharphosting.uk/](https://www.sharphosting.uk/)

Last edit: 9 years 6 months ago by [NigelPeck](/forum/user/32534-nigelpeck "View NigelPeck's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTAxOTItdmFybmlzaC1jYWNoZS1pbnRlZ3JhdGlvbi1yZWNlbnRseS12aWV3ZWQtcHJvZHVjdHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14325
-
-

9 years 6 months ago [\#269253](#269253) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Varnish Cache Integration - Recently Viewed Products](/forum/26-product-category-display/890192-varnish-cache-integration-recently-viewed-products#269253 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.7.0  I'm working on integrating Varnish Cache, and researching options. I've seen the integration package from Massive Scale and looking at getting that, but also playing around with custom integration. Simply blocking cookies in Varnish seems to be effective for pages without user-specific content. I would like to find a way to load recently viewed products with JavaScript so the rest can come out of Varnish (which is all I need in this case). I'm wondering...  &#42; Does the recently viewed products feature work off the Joomla session?  &#42; Has there been any other work done in this area, apart from the package that Massive Scale offer?")*

Hi,

The recently viewed products are stored in $_SESSION and the session is only available while the Joomla user session is valid.
However, HikaShop doesn't go through the getUserState and setUserState functions of Joomla to set the recently viewed products data in the session. It directly set that in $_SESSION.
It is accessible with that variable on the server side: Code:

$_SESSION['hikashop_viewed_products']

I don't know of any alternative to the Massive Scale offer.

The following user(s) said Thank You: [NigelPeck](/forum/user/32534-nigelpeck "View NigelPeck's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTAxOTItdmFybmlzaC1jYWNoZS1pbnRlZ3JhdGlvbi1yZWNlbnRseS12aWV3ZWQtcHJvZHVjdHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[NigelPeck](/forum/user/32534-nigelpeck "View NigelPeck's Profile")**
- [![NigelPeck's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar32534.jpg)](/forum/user/32534-nigelpeck "View NigelPeck's Profile") Topic Author
- [ Offline](/forum/user/32534-nigelpeck)

Less More

- Posts: 56
- Thank you received: 1
-
-
- [](https://www.sharphosting.uk/)
-

9 years 6 months ago [\#269310](#269310) by [NigelPeck](/forum/user/32534-nigelpeck "View NigelPeck's Profile")  Replied by *[NigelPeck](/forum/user/32534-nigelpeck "View NigelPeck's Profile")* on topic *[Varnish Cache Integration - Recently Viewed Products](/forum/26-product-category-display/890192-varnish-cache-integration-recently-viewed-products#269310 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.7.0  I'm working on integrating Varnish Cache, and researching options. I've seen the integration package from Massive Scale and looking at getting that, but also playing around with custom integration. Simply blocking cookies in Varnish seems to be effective for pages without user-specific content. I would like to find a way to load recently viewed products with JavaScript so the rest can come out of Varnish (which is all I need in this case). I'm wondering...  &#42; Does the recently viewed products feature work off the Joomla session?  &#42; Has there been any other work done in this area, apart from the package that Massive Scale offer?")*

Thanks Nicolas, that's a great help.

---

Professional website services including website management, Linux server admin and web hosting.
[ www.sharphosting.uk/](https://www.sharphosting.uk/)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTAxOTItdmFybmlzaC1jYWNoZS1pbnRlZ3JhdGlvbi1yZWNlbnRseS12aWV3ZWQtcHJvZHVjdHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.047 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
