benja1
Forum Replies Created
-
I know, and I want to do it without a plugin.
I was wondering if I could add this to my wp-config.php:
$memcached_servers = array( 'default' => array( 'IP:port' ) );
Or should it be like this:
$memcached_servers = array( 'default' => array( 'IP:port', 'IP:port' ) );
And then, I wondered if it is better to paste this code into php.ini.
If anyone knows this, it will be greatly appreciated.
Thanks!
- This reply was modified 2 years, 2 months ago by benja1.
Forum: Plugins
In reply to: [W3 Total Cache] How to change memcached port and use it on w3?Hi @vmarko, I want to use the same port, but I can only use Object Cache after changing the port under the advanced settings.
Thanks again!
Forum: Plugins
In reply to: [W3 Total Cache] How to change memcached port and use it on w3?Thanks again!
What if I want to change the port with the other memcached settings, database, minify and page cache?
Forum: Plugins
In reply to: [W3 Total Cache] How to change memcached port and use it on w3?I changed Memcached hostname:port / IP:port in the advanced tab it passed but I still get the:
The following memcached servers are not responding or not running:
- Database Cache: 127.0.0.1:11211.
This message will automatically disappear once the issue is resolved.
Thanks!
Forum: Plugins
In reply to: [W3 Total Cache] How to change memcached port and use it on w3?Hi @vmarko
sudo apt install php-memcached
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
php-memcached is already the newest version (3.1.5+2.2.0-14.1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.Thanks!
I have restarted without luck, thanks!
Hi,
Thanks!
lsof -i :11211
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
memcached 350432 memcache 22u IPv4 5140918 0t0 TCP localhost:11211 (LISTEN)
memcached 350432 memcache 23u IPv6 5140919 0t0 TCP ip6-localhost:11211 (LISTEN)In /etc/memcached.conf I have set -l 127.0.0.1 and also l ::1 for ipv6.
-vv
Dec 23 20:24:46 a-c-d systemd-memcached-wrapper[369407]: authenticated() in cmd 0x01 is false
Dec 23 20:24:46 a-c-d systemd-memcached-wrapper[369407]: >24 Writing an error: Auth failure.
Dec 23 20:24:46 a-c-d systemd-memcached-wrapper[369407]: >24 Writing bin response:Thanks!
Hi Faisal,
Thank you very much!
I have tried all the above without luck.
Memcached used to work untill I installed more virtual hosts, so it has something to do with multiple virtual hosts on the same droplet, thanks again!
Forum: Fixing WordPress
In reply to: Embedded YouTube videos loading slowly.
- This reply was modified 2 years, 3 months ago by benja1.
Forum: Fixing WordPress
In reply to: Embedded YouTube videos loading slowly,
- This reply was modified 2 years, 3 months ago by benja1.
Forum: Fixing WordPress
In reply to: Embedded YouTube videos loading slowlyClick around on my site and you’ll find that it is very fast. Everything besides embedded posts.
Your link is not helping.
Forum: Fixing WordPress
In reply to: PHP 8.1 Breaks siteRemember to turn of the old version and turn on the new
sudo a2enmod php7.4
systemctl restart apache2Hi,
I have already tried that, unfortunately it does not work from there.
- This reply was modified 2 years, 9 months ago by benja1.
Hi,
Yes, I try to add this code:
function wp_dereg_script_comment_reply(){wp_deregister_script( 'comment-reply' );} add_action('init','wp_dereg_script_comment_reply'); add_action('wp_head', 'wp_reload_script_comment_reply'); function wp_reload_script_comment_reply() { ?> <script> //Function checks if a given script is already loaded function isScriptLoaded(src){ return document.querySelector('script[src="' + src + '"]') ? true : false; } //When a reply link is clicked, check if reply-script is loaded. If not, load it and emulate the click var repLinks = document.getElementsByClassName("comment-reply-link"); for (var i=0; i < repLinks.length; i++) { repLinks[i].onclick = function() { if(!(isScriptLoaded("/wp-includes/js/comment-reply.min.js"))){ var script = document.createElement('script'); script.src = "/wp-includes/js/comment-reply.min.js"; script.onload = emRepClick(event.target.getAttribute('data-commentid')); document.head.appendChild(script); } } }; //Function waits 50 ms before it emulates a click on the relevant reply link now that the reply script is loaded function emRepClick(comId) { sleep(50).then(() => { document.querySelectorAll('[data-commentid="'+comId+'"]')[0].dispatchEvent(new Event('click')); }); } //Function does nothing, for a given amount of time function sleep (time) { return new Promise((resolve) => setTimeout(resolve, time)); } </script> <?php }
In this folder:
https://www.mydomain/wp-content/cache/wpo-minify/1655830772/assets/wpo-minify-header-86e76132.min.css
Thanks
Ben