litespeedtech / openlitespeed

Our high-performance, lightweight, open source HTTP server
https://openlitespeed.org
GNU General Public License v3.0
1.19k stars 193 forks source link

LSCache can't write cache #106

Closed puleeno closed 6 years ago

puleeno commented 6 years ago

I have install Litespeed Cache Wordpress plugin and enable it. But LScache can't write cache.

Output cache info has changed on every request. Please check it on https://isuzusaigon.net screen shot 2018-08-04 at 7 06 34 pm screen shot 2018-08-04 at 7 06 41 pm

Litespeed Report

Server Variables
    SERVER_SOFTWARE = LiteSpeed
    DOCUMENT_ROOT = /var/www/isuzusaigon.net
    X-LSCACHE = on,crawler
    LSWCP_TAG_PREFIX = c5f
    WP_SITEURL = NULL
    WP_HOME = NULL
    WP_CONTENT_DIR = /var/www/isuzusaigon.net/wp-content
    SHORTINIT = false
    LSCWP_CONTENT_DIR = /var/www/isuzusaigon.net/wp-content
    LSCWP_CONTENT_FOLDER = wp-content
    LSCWP_DIR = /var/www/isuzusaigon.net/wp-content/plugins/litespeed-cache/
    LITESPEED_TIME_OFFSET = 25200
    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://isuzusaigon.net
    home = https://isuzusaigon.net
    home_url = https://isuzusaigon.net
    locale = vi
    active theme = Web isuzusaigon
    active plugins = array (
  0 => 'custom-facebook-feed/custom-facebook-feed.php',
  1 => 'litespeed-cache/litespeed-cache.php',
  2 => 'masterslider/masterslider.php',
  3 => 'really-simple-ssl/rlrsssl-really-simple-ssl.php',
  4 => 'ubermenu/ubermenu.php',
  5 => 'wordpress-seo/wp-seo.php',
)

LSCache Plugin Options
    version = 2.4.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 = false
    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 = false
    css_inline_minify = false
    css_combine = false
    css_combined_priority = false
    css_http2 = false
    css_exclude = 
    js_minify = true
    js_inline_minify = true
    js_combine = false
    js_combined_priority = false
    js_http2 = false
    js_exclude = 
    optimize_ttl = 604800
    html_minify = true
    optm_qs_rm = false
    optm_ggfonts_rm = false
    optm_css_async = false
    optm_ccss_gen = true
    optm_ccss_async = true
    optm_css_async_inline = true
    optm_js_defer = false
    optm_emoji_rm = false
    optm_exclude_jquery = true
    optm_ggfonts_async = false
    optm_max_size = 1.2
    optm_rm_comment = false
    cdn = false
    cdn_ori = 
    cdn_exclude = 
    cdn_remote_jquery = 0
    cdn_quic = false
    cdn_quic_email = 
    cdn_quic_key = 
    cdn_cloudflare = false
    cdn_cloudflare_email = 
    cdn_cloudflare_key = 
    cdn_cloudflare_name = 
    cdn_cloudflare_zone = 
    media_img_lazy = false
    media_img_lazy_placeholder = 
    media_iframe_lazy = false
    media_optm_auto = false
    media_optm_cron = true
    media_optm_ori = true
    media_rm_ori_bkup = false
    media_optm_webp = false
    media_optm_lossless = false
    media_optm_exif = false
    media_webp_replace = false
    media_webp_replace_srcset = false
    hash = UcSj6XzZtRvDm73kehrmGHpGkGVhEyIc
    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 = pulled
    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-cache-dns_prefetch = 
    litespeed-cache-cloudflare_status = false
    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 = 

/var/www/isuzusaigon.net/.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_d1996ea2470c495f1a8e4e80573d99f7"]
### 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 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

OLS Log file error.log

Please help me fix it. Thanks very much!

litespeedtech commented 6 years ago

Can you use the latest release to test? Currently they work well together.

puleeno commented 6 years ago

I will try a test with the latest release. thanks!!