简体   繁体   中英

Prestashop Nginx FastCgi Caching

I'm trying to enable Nginx FastCgi cache in Prestashop 1.7 but i cannot find any way detecting logged in users or users with active carts in order to bypass cache.

Prestashop seems to not implement a correct cache control mechanism for hearers ( Response Headers always are Cache-Control: no-store, no-cache, must-revalidate ), and cookies are encrypted.

Is there any way of enabling this type of cache correctly ?

I've also searched about varnish with no luck at all

I came across the same need, tried Nginx Cache and Varnish but in every case you need to handle cache invalidation by yourself - this would require a LOT of effort, also you have to consider all third party "dynamic" content is involved (like third party modules).

If you need full page caching I strongly suggest you to rely on some already developed modules (ie. the widely used Pagecache) with a dedicated Memcached server where to store the cache data.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM