Hi @yworld,
I think that timeout causing when accessing to Memcache server. It uses localhost/port (127.0.0.1:11211) by default. Can you confirm that Memcached installed and you are able to access it?
(When activating a persistent object cache backend, you will need a driver and the service that runs on the server)
If your memcache server is different than localhost, you can define the server address in wp-config.php file such as:
$memcached_servers = array(
'default' => array(
'10.10.10.20:11211'
)
);
Please check this and let me know if you have any other questions.
How to properly exclude pages from caching(object cache):
You can’t exclude pages from the object cache (neither you should) but you can exclude it from the page cache under the advanced settings.
Cheers,
Thread Starter
Yworld
(@yworld)
Thread Starter
Yworld
(@yworld)
@m_uysl
Got this error again. I will be glad to any hints.
@yworld,
The socket should be supported fine with something like – https://wordpress.org/support/topic/memcached-with-unix-socket/#post-3939166
The plugin works fine with php 8. Add isset in a couple of places and the warnings go away. But these are trifles and take your time.
Actually, I’m not maintaining drop-ins directly, just porting them in the plugin for ease to use. If you feel comfortable, you can use https://wordpress.org/plugins/memcached/ too. I will check the other codes for PHP 8 compatibility for future versions.
Thanks for the feedback
Got this error again. I will be glad to any hints.
Would you mind giving a try to port instead of socket?
Thread Starter
Yworld
(@yworld)
@m_uysl
I’ll check and write, thanks!
Thread Starter
Yworld
(@yworld)
@m_uysl
Changed php_value max_execution_time 300. Perhaps this is the case.
No need to add port, it already parses the line in the file memcache-object-cache and adds the port 0:
$memcached_servers = array(
'default' => array(
'unix:///****/*****/.memcached.sock'
)
);
I’m checking it while it works.
-
This reply was modified 4 years, 10 months ago by
Yworld.
@yworld,
I’m not sure if you need to change max_execution_time value, Memcached access should be fast to get benefits from it. FWIW
Thread Starter
Yworld
(@yworld)
@m_uysl
The error occurs several times a day. In the meantime, I will check with php_value max_execution_time 300. Then I will decrease and check.
Thank you!
Thread Starter
Yworld
(@yworld)
@m_uysl
It’s hard to explain in English, but I’ll try.
I found out that the problem is in some changes in wp himself. The scripts(memcache-object-cache.php) are old enough and don’t take this into account. Therefore, the problem arises, but so far only on all sorts of non-standard and technical pages. Maybe I’ll take a moment and try to fix this issue in the future.
In general, everything works fine and there are no special problems with normal pages.
You made a great plugin, thanks again. You don’t need to change anything.
Hi @yworld,
Thanks for the feedback. I’m marking this thread as resolved then. Feel free to re-open it or create a new thread if you need further assistance.
Cheers,