LSCache without plugin problem

#1
Hi everyone, right now I using LSCache wihout plugin but facing some problem,
example if I have two page link like below
1. domain.com/category/machine
2. domain.com/category/machine?action=test

this two page result will cache as same page,
how do I separate this two page as different cache ?

can anyone help me or guide me ?
many thanks.
 
Last edited:

Cold-Egg

Administrator
#2
Do you mean cache via rewrite rules? I just tested example.com/phpinfo.php and example.com/phpinfo.php?1, the cache is separated.
 
#3
Do you mean cache via rewrite rules? I just tested example.com/phpinfo.php and example.com/phpinfo.php?1, the cache is separated.
yup via rewrite rules, we have one rewrite rules like below
Screenshot 2021-11-24 152716.png
the original url show like domain.com/category/product_list.php?pd_list=machine
after rewrite will show domain.com/category/machine

but when we see the page url like domain.com/category/machine?action=pd&show=9,
this page will show the same cache content as domain.com/category/machine,
without cache will show two different page content.

how do we separated this two page as different cache with our rewrite rules ?
 
#4
finally found the problem, I forget to add the QSA inside RewriteRule to get parameter value,
after add the cache create with separate.
Screenshot 2021-11-24 172134.png

btw thanks for the admin reply!:D
 
Top