This is an old revision of the document!


Improved cache engine to fix bad cache storage directory and file permissions

Normally for control panel environment, server level and virtual host level cache root are set in apache configuration(or include files). Once they are set and restart LSWS, web server will create such directory automatically with correct ownership and permissions.

However, some user may have manually created such cache folder with wrong ownership or permission, which will later cause a lot of problems such as cache creation or cache lookup etc.

LSWS 5.3 introduced a feature to automatically fix such cache root directory and permission problem.

For example, on cpanel, usually a virtual host level cache root is normally set to /home/$USER/lscache with “nobody:user” ownership. Somehow the user may manually create /home/$USER/lscache with “user:user” ownership. When restarting LSWS 5.3, server will automatically detect such error and change the cache diretory to be owned by “nobody:user”.

Let 's give another example.

For LSWS 5.2.x and lower version, when Just In Time Configuration is enabled on LSWS server configuration, seems virtual host cache folder cannot be created. The fix to it is to disable “JIT” in configuration.

LSWS 5.3 can handle such a situation. Even when “Just In Time Configuration” is enabled, after the first request hitting the vhost, “lscache” will be created. For this case, cache won't be used for the first request and there is little delay for vhost to enable cache, as designed.

  • Admin
  • Last modified: 2018/08/20 18:19
  • by Jackson Zhang