Hi
I'm experimenting using LS cache with Concrete5 CMS (C5).
I can get the current user in C5 and set the cache headers depending on whether they are logged in or not:
	
	
	
		
This works, I can see in the console that the cache is enabled, however it is always a miss.
I can confirm that LS cache will run and "hit" on the server because I have run it using htaccess rules without issue.
What else do I need to do to get the cache working using my method above?
Thanks
								I'm experimenting using LS cache with Concrete5 CMS (C5).
I can get the current user in C5 and set the cache headers depending on whether they are logged in or not:
		Code:
	
	$u = new User();
if(!$u->isLoggedIn()) {
   header('X-LiteSpeed-Cache-Control: public, max-age=3600');
   header('X-LiteSpeed-Cache-Control: private, max-age=3600');
   echo "Not logged in";
}
else {
   header('X-LiteSpeed-Cache-Control: no-cache');
   echo "Logged in";
}
	I can confirm that LS cache will run and "hit" on the server because I have run it using htaccess rules without issue.
What else do I need to do to get the cache working using my method above?
Thanks