litespeedtech / lscache-drupal

LSCache Plugin for Drupal
GNU General Public License v3.0
14 stars 15 forks source link

Add setting to exclude URLs/pages from caching #28

Open maicol07 opened 1 year ago

maicol07 commented 1 year ago

Hi, Can you add a way to specify some URLs or pages that should be ignored by caching? Thanks

yoyo-rk commented 1 year ago

You can usually set this in the LSWS admin console, if you have access to it. You can disable caching for specific urls in .htaccess for a no-plugin cache etup, but I'm not sure what happens if there is a conflict between what Drupal/LSCache say to cache and what .htaccess says not to don't cache. You'd have to do some testing to see. Here's the documentation on not caching certain urls in .htaccess:

https://docs.litespeedtech.com/lscache/noplugin/settings/