This is an old revision of the document!
LiteSpeed Cache for WordPress Settings: Advanced
Object Cache
OFF
Object Cache is disabled by default. Select ON
to enable it and then configure it via the settings described below. You can learn more about object cache here.
Method
Memcached
If your object cache is Memcached or LSCMC, set Method to Memcached
. If your object cache is Redis, set Method to Redis
.
Host
localhost
The hostname or IP address used by your Memcached or LSMCD object cache. The default setting should work fine for you, if your Memcached is set up via a TCP connection. If you are using a UNIX socket, Host should be set to /path/to/memcached.sock
. (Substitute the actual path used for your installation.)
Port
11211
The port number used by your object cache. The default setting should work fine for you, if your Memcached is set up via a TCP connection. If you are using a UNIX socket, Port should be set to 0
.
Default Object Lifetime
360
The TTL for items stored in the object cache. We recommend using a relatively short time in order to avoid stale results.
Status
An informational area to let you know the status of your external object cache. If you are getting errors here, please see How to Debug your Oject Cache Setup.
Username
Only available when SASL is installed and the object caching method is Memcached.
Password
Specify the password used when connecting.
Redis Database ID
Database to be used. This field only appears when the object caching method is Redis.
Global Groups
users
userlogins
usermeta
user_meta
site-transient
site-options
site-lookup
blog-lookup
blog-details
rss
global-posts
blog-id-cache
A list of groups that should be cached at the network level.
Do Not Cache Groups
comment
counts
plugins
A list of groups that should not be included in object cache.
Persistent Connection
ON
If enabled, the connection is kept alive in order to make Memcached faster.
Cache WP Admin
OFF
If enabled, WordPress admin will be sped up, but at the risk of occasionally retrieving stale data from the object cache.
Store Transients
ON
When Cache WP Admin is set to OFF
, transients have nowhere to go. Without transients, you don't receive server status notices (such as XXXX has been completed successfully.
). Enable Store Transients to get server notices when Cache WP Admin is disabled.
Browser Cache
off
When Browser Cache is enabled, static files (such as images, css, and videos) are stored locally on the user's device to make subsequent retrieval much faster. You can learn more about this setting here.
Browser Cache TTL
2592000
The amount of time, in seconds, that files will be stored in the browser cache before expiring. Minimum is 30 seconds. Recommended value is 2592000 (which is 30 days).
Check advanced-cache.php
on
This option can be off if another cache plugin is used for non full page caching purposes. For example, the other plugin can be a db cache, minification, etc.
Note: If another cache plugin is not being used, it is recommended to leave this on.
Login Cookie
empty string
This option should be used to configure a unique login cookie if multiple web applications with a LSCache plugin are used in a single virtual host.
An example login cookie is _wp_login_1
Improve HTTP/HTTPS Compatibility
OFF
When a site uses both HTTP and HTTPS, conflicts with the login cookie may occur. Cookies are based on domain name, regardless of protocol, however an HTTP connection can't read a cookie that was saved with HTTPS. And so, if a user logs in with HTTPS and then connects with HTTP, the user will be treated as a guest, and not as a logged-in user.
When you enable this option, the login cookie is saved as an HTTP cookie at all times, regardless of the protocol used to access the page. This ensures that the login cookie is always accessible to both HTTP and HTTPS connections.
Instant Click
OFF
It takes time for a user to click a link. First they hover over it, then they depress the mouse button, and then, only after the button is released, is the link considered “clicked” and the new page loaded. With Instant Click enabled, the page begins to load as soon as the user hovers over the link. By the time the mouse button is released, enough of the page has been loaded that the display can seem almost instant.
Be aware, though, that this function will generate extra requests to the server, if your visitors do a lot of link hovering without clicking. As such, it has the potential to impact server load.