budgetneon / v2pagecache

Page Cache for OpenCart V2.X
58 stars 26 forks source link

cached for all users #34

Open svyatoslavkhz opened 5 years ago

svyatoslavkhz commented 5 years ago

If the visitor is logged in, caching continues to work. opencart 2.3.0.2 v2pagecache 1.4 php 7.0 https://goodbooks.com.ua

b-js commented 4 years ago

36

Add $logged = false; foreach ($svar as $sval) { if (!empty($sval['customer_id']) || !empty($sval['affiliate_id'])) { $logged = true; } } in system/library/v2pagecache.php:248

and if( !empty($svar['customer_id']) || !empty($svar['affiliate_id']) || $logged) { $this->cacheable=false; return $this->cacheable; }