How to exclude specific page from cache like "checkout"

serpent_driver

Well-Known Member
#2
I don't know Opencart cache plugin and don't know if there is a function to exlude URLs from caching. If there is no such function you can exclude specific URLs from being cached in defining a cache rule in .htaccess. Otherweise check plugin functions.

Example:
Code:
RewriteCond %{REQUEST_URI} /(file).php$
RewriteRule .* - [E=Cache-Control:no-cache]
 

serpent_driver

Well-Known Member
#4
Again, I don't know this plugin. If there is no function to add a new hook you have to find someone who extends this plugin or try it manually with a vary cache rule in .htaccess. Or open a support ticket to get help.
 

Pong

Administrator
Staff member
#5
chekcout should not be cached unless you enabled the cashe globaly incorrectly on the server configuration.
 

serpent_driver

Well-Known Member
#7
It doesn't matter if you on shared hosting, vServer or dedicated server. The problem is that this extension doesn't use default checkout and Litespeed Cache plugin doesn't know this extension and can't exclude this extension from beeing cached. You need someone who can extend Litespeed cache plugin. If you don't find someone you can also define a rewrite rule in .htaccess to exclude used URLs from beeing cached.
 
Top