Forum Replies Created

Viewing 15 replies - 1 through 15 (of 31 total)
  • Thread Starter xninedesign

    (@x9design)

    Hello @aapc
    Thank you for your reply.
    I created this post in response to a specific situation I encountered while working with Kadence Blocks.

    When adding an SVG file as an image using the “Image (Adv)” block, there are significantly more options for controlling how the graphic is rendered. The most important one is the ability to wrap the generated <img> element with an anchor tag <a>.

    In contrast, the “Vector Graphic” block only allows embedding inline SVG markup directly into the page content. The available settings are limited to defining a maximum width (as you mentioned) and adjusting spacing (padding/margins) for the entire SVG container.

    As a result, there are real-world use cases where inserting an SVG as an image element is more practical. This, however, leads to an <img> element being rendered without width and height attributes. This exact issue was the primary reason for implementing my function — Google PageSpeed Insights reports consistently flagged the missing attributes as a performance problem. When an SVG is used as a clickable element, my solution addresses this limitation.

    If the theme were to provide a way to wrap inline SVG graphics with an <a> element, the Image (Adv) block would no longer be necessary in such cases, because when SVG markup is placed directly inside an anchor tag, PageSpeed Insights does not expect width and height attributes, as this requirement applies exclusively to <img> elements.

    Kind regards
    Christopher

    • This reply was modified 3 months, 3 weeks ago by xninedesign.
    Thread Starter xninedesign

    (@x9design)

    Could you please open our plugin section “Integrations” -> “Plugins” and disable from there all the options related to WooCommerce please?

    I tried this before. It not help.

    Once done that please follow this guide related to the cache plugin (if you have one) and then delete your website cache.

    On dev.waterblock.eu I do not use any cache plugin (it is the developer platform which which this topic refers to). On waterblock.eu I use now a Safe Mode to avoid those errors.

    Thread Starter xninedesign

    (@x9design)

    Unfortunately I don’t now how to use litespeed_vary_check_commenter_pending  filter so sending comments can be exlude from LiteSpeed handling, but correctly sended trough WordPress scripts. I believe such solution will help avoid this error. Please, correct me if I am wrong.

    Cache Commenters is set to OFF but problem still occurs.

    • This reply was modified 1 year, 3 months ago by xninedesign.
    Thread Starter xninedesign

    (@x9design)

    Is there any solution to exclude sending comment process from LiteSpeed Cache handling?

    Thread Starter xninedesign

    (@x9design)

    Numer raportu: EEVXHKPR
    Data raportu: 02/04/2025 01:27:58

    Thread Starter xninedesign

    (@x9design)

    From some reason site linked above had a Critical error so if you have reached a page with that error, now all is fine, and dev.waterblock.eu works.

    Thread Starter xninedesign

    (@x9design)

    But how does it relate to Object Cache?
    Does [hit] refer to Object Cache as well?
    In other words, if [hit] > 0, does that mean both Redis and Object Cache are working fine?

    From what I read on the internet, it is possible for Redis to be enabled on the server without Object Cache working. That’s why I need to know is a [hit] value above 0 indicates that Redis is working or if it also means Object Cache is functioning.

    Thread Starter xninedesign

    (@x9design)

    Please explain something else.

    On another account of my hosting provider I successfully run Redis app in my hosting panel, but even when i use a good port number in port field at settings page of your plugin, Redis is Disabled and Test connection is “Not available”.

    I know that something is wrong with my hosting server so I try to get help from technical support.

    But here is what I get in the html source code with the above effects:

    <!-- Object Cache [total] 11923 [hit_incall] 10914 [hit] 0 [miss_incall] 132 [miss] 877 [set] 881 -->

    Please explain to me, when [hit] is 0 it means that Object Cache is not working?

    Thread Starter xninedesign

    (@x9design)

    Thank You.

    I got this!

    <!-- Page optimized by LiteSpeed Cache @2024-10-07 14:50:48 --> 
    <!-- Page supported by LiteSpeed Cache 6.5.1 on 2024-10-07 14:50:48 -->
    <!-- Object Cache [total] 4643 [hit_incall] 4153 [hit] 386 [miss_incall] 23 [miss] 81 [set] 76 -->
    <!-- QUIC.cloud UCSS in queue -->

    So it seems the Object Cache working on my site.
    I really don’t understand why the technical support wrote me that Object Cache need LSChache module to work when I am using your plugin.

    Thread Starter xninedesign

    (@x9design)

    Here’s what I put into the wp-config.php file.

    define('WP_DEBUG', true);
    define('WP_DEBUG_LOG', true);
    define('WP_DEBUG_DISPLAY', false);

    In Object setting tab Redis is Enabled, Test connection is “Passed”, Purge all was used and still same in HTML source.

    <!-- Page optimized by LiteSpeed Cache @2024-10-07 14:38:35 -->

    <!-- Page supported by LiteSpeed Cache 6.5.1 on 2024-10-07 14:38:35 -->
    <!-- QUIC.cloud UCSS in queue -->

    Thread Starter xninedesign

    (@x9design)

    Thank You for respond.

    So maybe i will describe how it is on my case.

    In LiteSpeed Cache plugin settings Redis is “Enabled”, connection test is “Passed”.
    But here is the only comment code from HTML source of my page.

    <!-- Page optimized by LiteSpeed Cache @2024-10-07 13:45:25 -->
    <!-- Page supported by LiteSpeed Cache 6.5.1 on 2024-10-07 13:45:24 -->
    <!-- QUIC.cloud UCSS in queue -->

    As you see there is not comment <!-- Object Cache (...) --> so it seems even if in Object Cache tab the connection type is “Passed” in reality object cache seems not working on my site.

    Where I can enable debug log? I should do this on server side or in plugins settings?

    On my hosting server I found application .log file. Here is the part of logs from running Redis app


    1913145:M 07 Oct 11:59:59.593 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
    1913145:M 07 Oct 11:59:59.593 # Server started, Redis version 3.2.12
    1913145:M 07 Oct 11:59:59.593 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
    1913145:M 07 Oct 11:59:59.597 * DB loaded from disk: 0.004 seconds
    1913145:M 07 Oct 11:59:59.597 * The server is now ready to accept connections on port 6905
    1913145:M 07 Oct 12:05:00.028 * 10 changes in 300 seconds. Saving…
    1913145:M 07 Oct 12:05:00.028 * Background saving started by pid 1931502
    1931502:C 07 Oct 12:05:00.032 * DB saved on disk
    1931502:C 07 Oct 12:05:00.032 * RDB: 0 MB of memory used by copy-on-write
    1913145:M 07 Oct 12:05:00.128 * Background saving terminated with success
    1913145:M 07 Oct 12:30:03.125 * 1 changes in 900 seconds. Saving…
    1913145:M 07 Oct 12:30:03.125 * Background saving started by pid 2020437
    2020437:C 07 Oct 12:30:03.130 * DB saved on disk
    2020437:C 07 Oct 12:30:03.130 * RDB: 0 MB of memory used by copy-on-write
    1913145:M 07 Oct 12:30:03.225 * Background saving terminated with success
    1913145:M 07 Oct 12:35:04.052 * 10 changes in 300 seconds. Saving…
    1913145:M 07 Oct 12:35:04.052 * Background saving started by pid 2040723

    Here is info about my hosting server:

    Server Architecture Linux 3.10.0-962.3.2.lve1.5.85.el7.x86_64 x86_64
    Web Server Apache
    PHP Version 8.0.30 (Supports 64-bit values)
    PHP SAPI litespeed

    Here is the quote from technical support of my hosting provider

    Redis is available, but object cache will not work because it requires the LSCache module. Therefore, we recommend not using the Litespeed Cache plugin.

    I’m a bit confused now.

    • This reply was modified 1 year, 7 months ago by xninedesign.

    You should point that question to Your hosting provider. lscache folder have nothing to do with this plugin. Its a system folder of LSCache extension from Your hosting.

    Thread Starter xninedesign

    (@x9design)

    Thank You very much for help.
    That was what I needed.

    Thread Starter xninedesign

    (@x9design)

    Hello @omarfpg ,

    Thank You for your response.

    What I need exactly is to add a classes to <a> elements of product categories list widget.
    Adding a custom class to main element of widget it’s not a right trick for me, because i have in CSS styles a defined link effect via selector .hover.more and what I needed is to add those classes directy to <a> element. That would be the best solution if i could do that via woocommerce hooks. Alternatively i just create another line in my jQuery script theme file and this is the best solution at the moment.

    As I wrote before, I’m asking about this just to check if there’s some way to do it with a code snippet, before I do it with jQuery. It’s not important so much, so jQuery is enough. It was also a good way to learn something new about Woocommerce.

    One more time, thank you for your time.

    Thread Starter xninedesign

    (@x9design)

    Hi @michael-travan ,

    I’ve already done that! And i must say APIv2 rocks!

    Thanks to this, I could fully integrate my own subscription AJAX form with your plugin.

    Now i have completely independednt form to sign-up or unsubscribe subscription with my own system of confirmation links for both of this process. I do not need to use forms from your plugin. It’s enough to dequeue styles of your plugin and nobody will recognize that my site using it. Quite safety. 🙂

    Thanks a lot for reply.

Viewing 15 replies - 1 through 15 (of 31 total)