This is an old revision of the document!


Page depends on PHP session doesn't work with LiteSpeed Cache

Some plugin as WHMpress that uses PHP session to store values (currency, language…etc), the selection doesn't work with LiteSpeed Cache.

Once enabled LiteSpeed Cache, user depended value like currency will not work or display correctly.

A page content depends on PHP session is not cache-friendly, once cached page is generated , it will not vary on session data.

As LiteSpeed Cache is designed to avoid hit PHP backend, therefore there is no way for cache module to know what value it is stored in PHP session.

To make this to work , it will require code change in plugin to make it store values in cookie and set LiteSpeed Cache to vary on cookie.

  • Admin
  • Last modified: 2018/06/24 16:15
  • by qtwrk