Hi folks,
After setting up OLS according to the wiki, I'm still getting only the x-litespeed-cache-control header but not the x-litespeed-cache one, and it appears that no caching is being done as the cache directory is empty:
I've also turned on debug logging for the vhost and there are no Module-Cache entries in the error log. I'm out of ideas at this point and I'm hoping someone could offer some suggestions.
Headers:
After setting up OLS according to the wiki, I'm still getting only the x-litespeed-cache-control header but not the x-litespeed-cache one, and it appears that no caching is being done as the cache directory is empty:
Code:
$ ls -lR /home/lscache/alloutwalkabout.com/
/home/lscache/alloutwalkabout.com/:
total 4
drwxrwx--- 3 nobody nogroup 4096 Oct 8 08:44 0
/home/lscache/alloutwalkabout.com/0:
total 4
drwxrwx--- 3 nobody nogroup 4096 Oct 8 08:44 0
/home/lscache/alloutwalkabout.com/0/0:
total 4
drwxrwx--- 2 nobody nogroup 4096 Oct 8 10:56 0
/home/lscache/alloutwalkabout.com/0/0/0:
total 0
Headers:
Code:
$ curl -si https://alloutwalkabout.com
HTTP/2 200
date: Mon, 08 Oct 2018 17:53:02 GMT
content-type: text/html; charset=UTF-8
set-cookie: __cfduid=d3b39236a19d572a81b19585ac6f067781539021182; expires=Tue, 08-Oct-19 17:53:02 GMT; path=/; domain=.alloutwalkabout.com; HttpOnly
link: <https://alloutwalkabout.com/wp-json/>; rel="https://api.w.org/"
link: <https://alloutwalkabout.com/>; rel=shortlink
x-litespeed-cache-control: public,max-age=604800
x-litespeed-tag: a981_URL.6666cd76f96956469e7be39d750cc7d9,a981_F,a981_Po.171,a981_PGS,a981_
...<content snipped>...
Code:
# /usr/local/lsws/bin/lshttpd -v
LiteSpeed/1.4.39 Open
module versions:
modpagespeed 2.1-1.11.33.4
cache 1.57
modinspector 1.1
uploadprogress 1.1
mod_security 1.1
Code:
Server Variables
SERVER_SOFTWARE = LiteSpeed
DOCUMENT_ROOT = /var/www/wordpress
X-LSCACHE = on,crawler
LSWCP_TAG_PREFIX = a98
WP_SITEURL = NULL
WP_HOME = NULL
WP_CONTENT_DIR = /var/www/wordpress/wp-content
SHORTINIT = false
LSCWP_CONTENT_DIR = /var/www/wordpress/wp-content
LSCWP_CONTENT_FOLDER = wp-content
LSCWP_DIR = /var/www/wordpress/wp-content/plugins/litespeed-cache/
LITESPEED_TIME_OFFSET = -25200.0
LITESPEED_SERVER_TYPE = LITESPEED_SERVER_OLS
LITESPEED_CLI = NULL
LITESPEED_ALLOWED = true
LITESPEED_ON = true
LITESPEED_ON_IN_SETTING = true
LSCACHE_ADV_CACHE = true
Wordpress Specific Extras
wordpress version = 4.9.8
siteurl = https://alloutwalkabout.com
home = https://alloutwalkabout.com
home_url = https://alloutwalkabout.com
locale = en_US
active theme = GeneratePress
active plugins = array (
0 => 'backupbuddy/backupbuddy.php',
1 => 'akismet/akismet.php',
2 => 'autodescription/autodescription.php',
3 => 'disable-jq-migrate-littlebizzy/disable-jquery-migrate.php',
4 => 'easy-footnotes/easy-footnotes.php',
5 => 'elementor-pro/elementor-pro.php',
6 => 'elementor/elementor.php',
7 => 'essential-addons-elementor/essential_adons_elementor.php',
8 => 'gp-premium/gp-premium.php',
9 => 'imagify/imagify.php',
10 => 'ithemes-security-pro/ithemes-security-pro.php',
11 => 'ithemes-sync/init.php',
12 => 'litespeed-cache/litespeed-cache.php',
13 => 'meow-gallery/meow-gallery.php',
14 => 'meow-lightbox/meow-lightbox.php',
15 => 'ninja-forms/ninja-forms.php',
16 => 'organize-series/orgSeries.php',
17 => 'social-warfare-pro/social-warfare-pro.php',
18 => 'social-warfare/social-warfare.php',
19 => 'the-seo-framework-extension-manager/the-seo-framework-extension-manager.php',
20 => 'wp-dashboard-notes/wp-dashboard-notes.php',
21 => 'wp-google-maps/wpGoogleMaps.php',
22 => 'wp-pagenavi/wp-pagenavi.php',
23 => 'wp-user-avatar/wp-user-avatar.php',
24 => 'yuzo-related-post/yuzo_related_post.php',
)
LSCache Plugin Options
version = 2.6.1
radio_select = 1
purge_upgrade = true
cache_priv = true
cache_commenter = true
cache_rest = true
cache_page_login = true
timed_urls =
timed_urls_time =
cache_favicon = true
cache_resources = true
mobileview_enabled = false
mobileview_rules =
cache_object = false
cache_object_kind = false
cache_object_host = localhost
cache_object_port = 11211
cache_object_life = 360
cache_object_persistent = true
cache_object_admin = true
cache_object_transients = true
cache_object_db_id = 0
cache_object_user =
cache_object_pswd =
cache_browser = true
cache_browser_ttl = 2592000
login_cookie =
check_advancedcache = true
use_http_for_https_vary = false
debug_disable_all = false
debug = 0
admin_ips = 127.0.0.1
debug_level = false
log_file_size = 3
heartbeat = true
debug_cookie = false
collaps_qs = false
log_filters = false
public_ttl = 604800
private_ttl = 1800
front_page_ttl = 604800
feed_ttl = 0
403_ttl = 3600
404_ttl = 3600
500_ttl = 3600
purge_by_post = A.F.H.M.PGS.PGSRP.PT.T
excludes_qs =
excludes_cat =
excludes_tag =
instant_click = false
css_minify = true
css_inline_minify = true
css_combine = false
css_combined_priority = false
css_http2 = true
css_exclude =
js_minify = true
js_inline_minify = true
js_combine = false
js_combined_priority = false
js_http2 = true
js_exclude =
optimize_ttl = 604800
html_minify = true
optm_qs_rm = true
optm_ggfonts_rm = false
optm_css_async = true
optm_ccss_gen = true
optm_ccss_async = true
optm_css_async_inline = true
optm_js_defer = true
optm_emoji_rm = true
optm_exclude_jquery = true
optm_ggfonts_async = true
optm_max_size = 1.2
optm_rm_comment = true
cdn = false
cdn_ori =
cdn_exclude =
cdn_remote_jquery = 2
cdn_quic = false
cdn_quic_email =
cdn_quic_key =
cdn_cloudflare = true
cdn_cloudflare_email = stackpwnies@gmail.com
cdn_cloudflare_key = *************************************
cdn_cloudflare_name = alloutwalkabout.com
cdn_cloudflare_zone = 3213b6d9945928c06abf6b8249e10b5b
media_img_lazy = true
media_img_lazy_placeholder =
media_placeholder_resp = true
media_placeholder_resp_color = #cfd4db
media_placeholder_resp_async = true
media_iframe_lazy = true
media_img_lazyjs_inline = true
media_optm_auto = true
media_optm_cron = true
media_optm_ori = true
media_rm_ori_bkup = false
media_optm_webp = false
media_optm_lossless = false
media_optm_exif = true
media_webp_replace = false
media_webp_replace_srcset = false
hash = jwIVndZvc7vXB3w7WSzRadvkChapv0Rc
nocache_cookies =
nocache_useragents =
crawler_include_posts = true
crawler_include_pages = true
crawler_include_cats = true
crawler_include_tags = true
crawler_excludes_cpt =
crawler_order_links = date_desc
crawler_usleep = 500
crawler_run_duration = 400
crawler_run_interval = 600
crawler_crawl_interval = 302400
crawler_threads = 3
crawler_load_limit = 1
crawler_domain_ip =
crawler_custom_sitemap =
crawler_cron_active = false
litespeed-cache-vary-group = false
litespeed-cache-exclude-optimization-roles = array (
)
litespeed-cache-exclude-cache-roles = array (
)
litespeed-optm-css =
litespeed-optm-js-defer-excludes =
litespeed-media-lazy-img-excludes =
litespeed-media-need-pull = false
litespeed-env-ref = false
litespeed-cache-drop_qs =
litespeed-cache-cdn_mapping = array (
0 =>
array (
'url' => false,
'inc_img' => false,
'inc_css' => false,
'inc_js' => false,
'filetype' => '.aac
.css
.eot
.gif
.jpeg
.js
.jpg
.less
.mp3
.mp4
.ogg
.otf
.pdf
.png
.svg
.ttf
.woff',
),
)
litespeed-cdn-ori_dir = wp-content
wp-includes
/min/
litespeed-cache-dns_prefetch =
litespeed-cache-cloudflare_status = array (
'devmode' => 'off',
'devmode_expired' => 1539011991,
)
litespeed-log_ignore_filters =
litespeed-log_ignore_part_filters =
litespeed-object_global_groups = users
userlogins
usermeta
user_meta
site-transient
site-options
site-lookup
blog-lookup
blog-details
rss
global-posts
blog-id-cache
litespeed-object_non_persistent_groups = comment
counts
plugins
litespeed-crawler-as-uids =
litespeed-adv-purge_all_hooks = switch_theme
wp_create_nav_menu
wp_update_nav_menu
wp_delete_nav_menu
create_term
edit_terms
delete_term
add_link
edit_link
delete_link
litespeed-forced_cache_uri =
litespeed-cache_uri_priv =
litespeed-optm_excludes =
litespeed-excludes_uri =
litespeed-media-webp_attribute = img.src
div.data-thumb
img.data-src
div.data-large_image
img.retina_logo_url
litespeed-optm-ccss-separate_posttype =
litespeed-optm-css-separate_uri =
/var/www/wordpress/.htaccess contents:
# BEGIN LSCACHE
## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ##
<IfModule LiteSpeed>
RewriteEngine on
CacheLookup on
RewriteRule .* - [E=Cache-Control:no-autoflush]
RewriteRule ^min/\w+\.(css|js) - [E=cache-control:no-vary]
### marker CACHE RESOURCE start ###
RewriteRule wp-content/.*/[^/]*(responsive|css|js|dynamic|loader|fonts)\.php - [E=cache-control:max-age=3600]
### marker CACHE RESOURCE end ###
### marker LOGIN COOKIE start ###
RewriteRule .? - [E="Cache-Vary:wp-postpass_8dab3cf74c6c795467f60bfda27f1e3c"]
### marker LOGIN COOKIE end ###
### marker FAVICON start ###
RewriteRule favicon\.ico$ - [E=cache-control:max-age=86400]
### marker FAVICON end ###
</IfModule>
## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ##
# END LSCACHE
# BEGIN NON_LSCACHE
## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ##
### marker BROWSER CACHE start ###
<IfModule mod_expires.c>
ExpiresActive on
ExpiresByType application/pdf A2592000
ExpiresByType image/x-icon A2592000
ExpiresByType image/vnd.microsoft.icon A2592000
ExpiresByType image/svg+xml A2592000
ExpiresByType image/jpg A2592000
ExpiresByType image/jpeg A2592000
ExpiresByType image/png A2592000
ExpiresByType image/gif A2592000
ExpiresByType image/webp A2592000
ExpiresByType video/ogg A2592000
ExpiresByType audio/ogg A2592000
ExpiresByType video/mp4 A2592000
ExpiresByType video/webm A2592000
ExpiresByType text/css A2592000
ExpiresByType text/javascript A2592000
ExpiresByType application/javascript A2592000
ExpiresByType application/x-javascript A2592000
ExpiresByType application/x-font-ttf A2592000
ExpiresByType application/x-font-woff A2592000
ExpiresByType application/font-woff A2592000
ExpiresByType application/font-woff2 A2592000
ExpiresByType application/vnd.ms-fontobject A2592000
ExpiresByType font/ttf A2592000
ExpiresByType font/woff A2592000
ExpiresByType font/woff2 A2592000
</IfModule>
### marker BROWSER CACHE end ###
### marker MINIFY start ###
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} ^(.*)/min/(\w+)\.(css|js)$
RewriteCond %1/wp-content/cache/$2/$1.$2 -f
RewriteRule min/(\w+)\.(css|js) wp-content/cache/$2/$1.$2 [L]
</IfModule>
### marker MINIFY end ###
## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ##
# END NON_LSCACHE
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress