xninedesign
Forum Replies Created
-
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.
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 above0
indicates that Redis is working or if it also means Object Cache is functioning.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]
is0
it means that Object Cache is not working?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.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 -->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 2040723Here 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 litespeedHere 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 month, 2 weeks ago by xninedesign.
Forum: Plugins
In reply to: [LiteSpeed Cache] Large disk space usageYou 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.Forum: Plugins
In reply to: [Breadcrumb NavXT] Why i cant use “itemListElement” to as attribute?Thank You very much for help.
That was what I needed.Forum: Plugins
In reply to: [WooCommerce] Custom link class in “Product Categories List” WidgetHello @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.Forum: Plugins
In reply to: [Newsletter - Send awesome emails from WordPress] API v1 subscribers listHi @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.
Forum: Plugins
In reply to: [WooCommerce] Custom link class in “Product Categories List” WidgetRight after you posted your snippet I did reply to You @serafinnyc, that I am using WP Block widget and explaining this way (saying about different type of widget), why your code can’t work. ?? How did you not realize then, that what is working on your site it’s not a thing which relates to what I asking for? Your demonstration that something works on your website made no sense.
Forum: Plugins
In reply to: [WooCommerce] Custom link class in “Product Categories List” WidgetIt didn’t occur to me to show you in any way that I used your solution, because firstly, I use it myself in my code, and hence I know that your solution doesn’t work, and secondly, on the first of my screenshots, it’s clearly visible that I used exactly the same thing, but not to change the class of the
<li>
elements, but<a>
(class=more hover
). If your solution would worked (which my screenshot shows), the second menu with product categories would have links with arrows looking the same, because the same snippet I use (without a condition relating to the taxonomy type) to add additional classes to<a>
elements implies this for all elements of this type on the page. In the second of my post, I clearly wrote that the widget I use to display the list of Woocommerce product categories is the Gutenberg block widget, so since I specified that then, I don’t understand why you didn’t immediately realize that your code wouldn’t work, but instead asked if I used it at all. If you had written instead that it’s not possible to do it because of using the Gutenberg block widget (which I didn’t know), I wouldn’t have pasted those screenshots links and wouldn’t have continued explaining.I didn’t write anywhere that I’m referring to UL (the arrows on screenshot also don’t suggest that at all) because it was not my need. In the first post here, I wrote about links, so your suggestion was quite accurate in terms of understanding my needs, but unfortunately, also ineffective.
Nevertheless, thank you for your time and willingness to help. Regards.
- This reply was modified 6 months, 2 weeks ago by xninedesign.
Forum: Plugins
In reply to: [WooCommerce] Custom link class in “Product Categories List” WidgetDid you even bother adding the script?
Yes, I did. But as I wrote your code manipulate a different type of widget.
Look at my screenshots.https://xnd.works/_d/product-cat-list.webp
https://xnd.works/_d/product-cat-list-widgets.webpAs you can see, on first screenshot I did similar thing with
wp_list_categories
and it work great. And also if you pay attention to HTML code, Your categories list (as it is with my blog categories list) it’s the same widget in which<li>
elements have a css classcat-item
. The Woocommerce widget to display Product Categories List is not the same HTML element, so it must be an output from different source and it seems it not using standard wordpress function to list categories. Thats why, I think,add_filter('wp_list_categories')
doesn’t want to work.PS. Of course I can do this with jQuery, but until i decide about it, i want to check is there any chance to do that with any hook.
Forum: Plugins
In reply to: [WooCommerce] Custom link class in “Product Categories List” WidgetThank you @serafinnyc for your reply.
Unfortunately this not resolve my needs.You tried manipulate the standard WordPress widget which displays a
<ul>
element with categories. Woocommerce widget which create similar HTML element but with<ul>
element with Products categories is a different gutenberg block widget, so your solution do not affect anything in it.- This reply was modified 6 months, 2 weeks ago by xninedesign.
I wasn’t precise enough. My fault.
Thank you for your willingness to help. Regards.