• Resolved tarik21

    (@tarik21)


    Hello,
    LSC version: 4.5.0.1
    Woocommerce: 6.3.1
    Wordpress: 5.9.2
    (ALl on the latest versions)
    I have a very difficult time trying to resolve this issue:
    I have about 35 product categories all setup from the admin dashboard: see pic attached
    https://ibb.co/zGKvxDC

    But if a vendor tries to list a new product, he ends up blocked because he can’t see / setup any product category to which the product belongs: (
    https://ibb.co/WyHSXt1

    I tried to exclude all my categories from Cache, but the list doesn’t get saved by LSC.
    I added the code below to my functions.php > but it didn’t fix the problem
    Tried to put /categorie/ in the URI to exclude all categories > No results!
    I frankly don’t know how to resolve this problem!!
    Any ideas pls??

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

    (@tarik21)

    Here’s the code:

    add_action( 'woocommerce_before_main_content', 'lscwp_nocache' );
    function lscwp_nocache() {
    if ( is_product_category() ) {
    do_action( 'litespeed_control_set_nocache', 'custom nocache' );
    }
    }
    Plugin Support qtwrk

    (@qtwrk)

    Did you enable object cache ?

    Thread Starter tarik21

    (@tarik21)

    Hello and Thank you for your feedback.
    No I didn’t!

    Plugin Support qtwrk

    (@qtwrk)

    with that code snippet , did you see x-litespeed-cache-control: no-cache header on category page ?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Woocommerce product categories don’t show up’ is closed to new replies.