• Resolved joe08

    (@joe08)


    Does Litespeed work with normal woocommerce variable products and stock control?
    Usually the user would select one or more options from a select box, and be shown the stock quantity remaining.
    Does Litespeed need extra configuration to use this out of the box functionality?
    Clearing the cache fixes the problem.
    If a user adds the product to cart and it is out of stock, they will get a message, but are also confused as it is stated in stock on the product page.
    Any help would be appreciated.
    Thanks, Joe

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter joe08

    (@joe08)

    When this happens Stripe payment buttons also stop working.
    The google wallet button will show a loading icon indefinitely.
    Console reports https://domain.co.uk/?wc-ajax=wc_stripe_get_selected_product_data Failed to load resource: the server responded with a status of 403 ()

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    Could you please provide the report number ?

    You can get it from Toolbox –> Report –> click “send to LiteSpeed”

    Best regards,

    Thread Starter joe08

    (@joe08)

    
    Server Variables
        SERVER_SOFTWARE = LiteSpeed
        DOCUMENT_ROOT = /home/username/domainname.co.uk
        X-LSCACHE = on,crawler
        LSWCP_TAG_PREFIX = 2df
        WP_SITEURL = NULL
        WP_HOME = NULL
        WP_CONTENT_DIR = /home/username/domainname.co.uk/wp-content
        SHORTINIT = false
        LSCWP_CONTENT_DIR = /home/username/domainname.co.uk/wp-content
        LSCWP_CONTENT_FOLDER = wp-content
        LSCWP_DIR = /home/username/domainname.co.uk/wp-content/plugins/litespeed-cache/
        LITESPEED_TIME_OFFSET = 3600.0
        LITESPEED_SERVER_TYPE = LITESPEED_SERVER_ENT
        LITESPEED_CLI = NULL
        LITESPEED_ALLOWED = true
        LITESPEED_ON = true
        LSWCP_TAG_PREFIX = 2df
        COOKIEHASH = 5814659ae2357d1cb18a372fecafc7b3
    
    Wordpress Specific Extras
        wordpress version = 5.4.2
        siteurl = https://domainname.co.uk
        home = https://domainname.co.uk
        home_url = https://domainname.co.uk
        locale = en_GB
        active theme = Yes to Yoga
        active plugins = array (
      0 => 'acf-content-analysis-for-yoast-seo/yoast-acf-analysis.php',
      1 => 'acf-flexible-layouts-manager/acf-flexible-layouts-manager.php',
      2 => 'advanced-custom-fields-component_field/index.php',
      3 => 'advanced-custom-fields-pro/acf.php',
      4 => 'contact-form-7-honeypot/honeypot.php',
      5 => 'contact-form-7/wp-contact-form-7.php',
      6 => 'duplicate-post/duplicate-post.php',
      7 => 'email-log/email-log.php',
      8 => 'ga-google-analytics/ga-google-analytics.php',
      9 => 'limit-login-attempts-reloaded/limit-login-attempts-reloaded.php',
      10 => 'litespeed-cache/litespeed-cache.php',
      11 => 'mailchimp-for-wp/mailchimp-for-wp.php',
      12 => 'simple-301-redirects/wp-simple-301-redirects.php',
      13 => 'woocommerce-gateway-stripe/woocommerce-gateway-stripe.php',
      14 => 'woocommerce/woocommerce.php',
      15 => 'wordpress-seo/wp-seo.php',
      16 => 'wp-migrate-db/wp-migrate-db.php',
    )
        cloud = array (
      'curr_request.wp/ver' => 0,
      'last_request.wp/ver' => 1596540658,
      'curr_request.wp/report' => 0,
      'last_request.wp/report' => 1596557878,
    )
    
    LSCache Plugin Options
        _version = 3.2.4
        hash = VVHzqeMWkMmPlByihb0ltfFEoZQNlT1x
        auto_upgrade = false
        api_key = 
        server_ip = 
        news = false
        cache = true
        cache-priv = true
        cache-commenter = true
        cache-rest = true
        cache-page_login = true
        cache-favicon = true
        cache-resources = true
        cache-mobile = false
        cache-mobile_rules = array (
    )
        cache-browser = false
        cache-exc_useragents = array (
    )
        cache-exc_cookies = array (
    )
        cache-exc_qs = array (
    )
        cache-exc_cat = array (
    )
        cache-exc_tag = array (
    )
        cache-force_uri = array (
    )
        cache-force_pub_uri = array (
    )
        cache-priv_uri = array (
    )
        cache-exc = array (
      0 => '/my-account/lost-password/',
    )
        cache-exc_roles = array (
    )
        cache-drop_qs = array (
      0 => 'fbclid',
      1 => 'gclid',
      2 => 'utm*',
      3 => '_ga',
    )
        cache-ttl_pub = 604800
        cache-ttl_priv = 1800
        cache-ttl_frontpage = 604800
        cache-ttl_feed = 0
        cache-ttl_rest = 604800
        cache-ttl_browser = 2592000
        cache-ttl_status = array (
      0 => '403 3600',
      1 => '404 3600',
      2 => '500 3600',
    )
        cache-login_cookie = 
        cache-vary_group = array (
      'administrator' => '99',
      'author' => '0',
      'contributor' => '0',
      'customer' => '0',
      'editor' => '0',
      'shop_manager' => '0',
      'subscriber' => '0',
      'wpseo_editor' => '0',
      'wpseo_manager' => '0',
    )
        purge-upgrade = true
        purge-stale = true
        purge-post_all = false
        purge-post_f = true
        purge-post_h = true
        purge-post_p = true
        purge-post_pwrp = true
        purge-post_a = true
        purge-post_y = false
        purge-post_m = true
        purge-post_d = false
        purge-post_t = true
        purge-post_pt = true
        purge-timed_urls = array (
    )
        purge-timed_urls_time = 
        purge-hook_all = array (
      0 => 'switch_theme',
      1 => 'wp_create_nav_menu',
      2 => 'wp_update_nav_menu',
      3 => 'wp_delete_nav_menu',
      4 => 'create_term',
      5 => 'edit_terms',
      6 => 'delete_term',
      7 => 'add_link',
      8 => 'edit_link',
      9 => 'delete_link',
    )
        esi = false
        esi-cache_admbar = true
        esi-cache_commform = true
        esi-nonce = array (
      0 => 'stats_nonce',
      1 => 'subscribe_nonce',
    )
        util-instant_click = false
        util-no_https_vary = false
        debug-disable_all = false
        debug = 0
        debug-ips = array (
      0 => '127.0.0.1',
    )
        debug-level = false
        debug-filesize = 3
        debug-cookie = false
        debug-collaps_qs = false
        debug-inc = array (
    )
        debug-exc = array (
    )
        db_optm-revisions_max = 0
        db_optm-revisions_age = 0
        optm-css_min = false
        optm-css_inline_min = false
        optm-css_comb = false
        optm-css_comb_priority = false
        optm-css_unique = false
        optm-ucss = false
        optm-ucss_async = false
        optm-css_http2 = false
        optm-css_exc = array (
    )
        optm-js_min = false
        optm-js_inline_min = false
        optm-js_comb = false
        optm-js_comb_priority = false
        optm-js_http2 = false
        optm-js_exc = array (
    )
        optm-ttl = 604800
        optm-html_min = false
        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-css_font_display = 0
        optm-js_defer = false
        optm-js_inline_defer = 0
        optm-emoji_rm = false
        optm-exc_jq = true
        optm-ggfonts_async = false
        optm-max_size = 1
        optm-rm_comment = false
        optm-exc_roles = array (
    )
        optm-ccss_con = 
        optm-js_defer_exc = array (
    )
        optm-dns_prefetch = array (
    )
        optm-dns_prefetch_ctrl = false
        optm-exc = array (
    )
        optm-ccss_sep_posttype = array (
    )
        optm-ccss_sep_uri = array (
    )
        object = false
        object-kind = false
        object-host = localhost
        object-port = 11211
        object-life = 360
        object-persistent = true
        object-admin = true
        object-transients = true
        object-db_id = 0
        object-user = 
        object-pswd = 
        object-global_groups = array (
      0 => 'users',
      1 => 'userlogins',
      2 => 'usermeta',
      3 => 'user_meta',
      4 => 'site-transient',
      5 => 'site-options',
      6 => 'site-lookup',
      7 => 'blog-lookup',
      8 => 'blog-details',
      9 => 'rss',
      10 => 'global-posts',
      11 => 'blog-id-cache',
    )
        object-non_persistent_groups = array (
      0 => 'comment',
      1 => 'counts',
      2 => 'plugins',
      3 => 'wc_session_id',
    )
        discuss-avatar_cache = false
        discuss-avatar_cron = false
        discuss-avatar_cache_ttl = 604800
        media-lazy = false
        media-lazy_placeholder = 
        media-placeholder_resp = false
        media-placeholder_resp_color = #cfd4db
        media-placeholder_resp_svg = <svg xmlns="http://www.w3.org/2000/svg" width="{width}" height="{height}" viewBox="0 0 {width} {height}"><rect width="100%" height="100%" fill="{color}"/></svg>
        media-lqip = false
        media-lqip_qual = 4
        media-lqip_min_w = 150
        media-lqip_min_h = 150
        media-placeholder_resp_async = true
        media-iframe_lazy = false
        media-lazyjs_inline = false
        media-lazy_exc = array (
    )
        media-lazy_cls_exc = array (
    )
        media-lazy_parent_cls_exc = array (
    )
        media-iframe_lazy_cls_exc = array (
    )
        media-iframe_lazy_parent_cls_exc = array (
    )
        media-lazy_uri_exc = array (
    )
        img_optm-auto = false
        img_optm-cron = true
        img_optm-ori = true
        img_optm-rm_bkup = false
        img_optm-webp = false
        img_optm-lossless = false
        img_optm-exif = false
        img_optm-webp_replace = false
        img_optm-webp_attr = array (
      0 => 'img.src',
      1 => 'div.data-thumb',
      2 => 'img.data-src',
      3 => 'div.data-large_image',
      4 => 'img.retina_logo_url',
    )
        img_optm-webp_replace_srcset = false
        img_optm-jpg_quality = 82
        crawler = true
        crawler-inc_posts = true
        crawler-inc_pages = true
        crawler-inc_cats = true
        crawler-inc_tags = true
        crawler-exc_cpt = array (
    )
        crawler-order_links = 0
        crawler-usleep = 500
        crawler-run_duration = 400
        crawler-run_interval = 600
        crawler-crawl_interval = 86400
        crawler-threads = 3
        crawler-timeout = 30
        crawler-load_limit = 1
        crawler-sitemap = 
        crawler-drop_domain = true
        crawler-map_timeout = 120
        crawler-roles = array (
    )
        crawler-cookies = array (
    )
        misc-htaccess_front = 
        misc-htaccess_back = 
        misc-heartbeat_front = false
        misc-heartbeat_front_ttl = 60
        misc-heartbeat_back = false
        misc-heartbeat_back_ttl = 60
        misc-heartbeat_editor = false
        misc-heartbeat_editor_ttl = 15
        cdn = false
        cdn-ori = array (
    )
        cdn-ori_dir = array (
      0 => 'wp-content',
      1 => 'wp-includes',
      2 => '/min/',
    )
        cdn-exc = array (
    )
        cdn-remote_jq = 0
        cdn-quic = false
        cdn-cloudflare = false
        cdn-cloudflare_email = 
        cdn-cloudflare_key = 
        cdn-cloudflare_name = 
        cdn-cloudflare_zone = 
        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',
      ),
    )
        cdn-attr = array (
      0 => '.src',
      1 => '.data-src',
      2 => '.href',
      3 => '.poster',
      4 => 'source.srcset',
    )
        _cache = true
        wc_update_interval = 3
        wc_shop_use_front_ttl = 1
        woo_cache_cart = 1
    
    /home/username/domainname.co.uk/.htaccess contents:
    # BEGIN NON_LSCACHE
    ## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ##
    ## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ##
    # END NON_LSCACHE
    # 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]
    
    ### 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 FAVICON start ###
    RewriteRule favicon\.ico$ - [E=cache-control:max-age=86400]
    ### marker FAVICON end ###
    
    ### marker DROPQS start ###
    CacheKeyModify -qs:fbclid
    CacheKeyModify -qs:gclid
    CacheKeyModify -qs:utm*
    CacheKeyModify -qs:_ga
    ### marker DROPQS end ###
    
    </IfModule>
    ## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ##
    # END LSCACHE
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{SERVER_PORT} 80 
    RewriteRule ^(.*)$ https://domainname.co.uk/$1 [R,L]
    </IfModule>
    
    #Redirect 301 /sitemap.xml https://domainname.co.uk/sitemap_index.xml
    
    # BEGIN WordPress
    # The directives (lines) between BEGIN WordPress and END WordPress are
    # dynamically generated, and should only be modified via WordPress filters.
    # Any changes to the directives between these markers will be overwritten.
    <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
    
    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    Please create a ticket here, we will investigate it further

    Best regards,

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Caching woocommerce variable product stock incorrectly’ is closed to new replies.