JotCache ver.4.2.2 used with Virtuemart 2 currency selection

currency-select2JotCache is often used on Virtuemart shopping sites with good results for much faster page responses. But in cases when shop was configured to run with different currencies until present time was not possible to use any page caching.

The reason behind problematic behavior with page caching is usage the same URL for pages (product categories or product details) with different page content caused with currency presentation and recalculation. In case of active page caching  the first page content with some currency was stored into cache. All later requests to the page returned not actually set currency but currency from first cached content.

jotcache-plugin-setting-session-varsIn Virtuemart 2 actual set currency for each visitor is stored as session variable 'virtuemart_currency_id'. JotCache ver.4.2 can distinguish the value of session variable and to store different page content in cache storage. JotCache system plugin has new parameter ' Session Variables Split' which is used for described purpose.

jotcache-options-session-vars2After proper setting of session variable can be seen product pages cached with different value of session variable in JotCache Management View table. For better overview can be set in component options parameter 'Show session data'.