1
votes

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

1

1 Answers

1
votes

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.