Title: Errors when using Memcache
Last modified: June 5, 2021

---

# Errors when using Memcache

 *  Resolved [Yworld](https://wordpress.org/support/users/yworld/)
 * (@yworld)
 * [5 years ago](https://wordpress.org/support/topic/errors-when-using-memcache/)
 * Thanks for the great plugin!
    Such errors `PHP Fatal error: Maximum execution
   time of 10 seconds exceeded in /public_html/wp-content/plugins/powered-cache/
   includes/dropins/memcache-object-cache.php on line 133`
 * I use php 8. did not notice errors 7.4
 * Any hints would be appreciated.
 * How to properly exclude pages from caching(object cache):
    /wp-admin/post-new.
   php /wp-admin/post.php?post=11666&action=edit
 * they also get errors
    -  This topic was modified 5 years ago by [Yworld](https://wordpress.org/support/users/yworld/).
    -  This topic was modified 5 years ago by [Yworld](https://wordpress.org/support/users/yworld/).
    -  This topic was modified 5 years ago by [Yworld](https://wordpress.org/support/users/yworld/).

Viewing 11 replies - 1 through 11 (of 11 total)

 *  Plugin Author [Mustafa Uysal](https://wordpress.org/support/users/m_uysl/)
 * (@m_uysl)
 * [5 years ago](https://wordpress.org/support/topic/errors-when-using-memcache/#post-14523739)
 * Hi [@yworld](https://wordpress.org/support/users/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,
    -  This reply was modified 5 years ago by [Mustafa Uysal](https://wordpress.org/support/users/m_uysl/).
 *  Thread Starter [Yworld](https://wordpress.org/support/users/yworld/)
 * (@yworld)
 * [5 years ago](https://wordpress.org/support/topic/errors-when-using-memcache/#post-14523752)
 * [@m_uysl](https://wordpress.org/support/users/m_uysl/)
    Yes, everything is fine
   with Memcached installed. wp-config.php(does not work if via socket) connection
   drops intermittently. I wrote the socket directly to memcache-object-cache. I’ll
   see what happens next while it works. Thank you for your attention to the question!
 * 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.
    -  This reply was modified 5 years ago by [Yworld](https://wordpress.org/support/users/yworld/).
    -  This reply was modified 5 years ago by [Yworld](https://wordpress.org/support/users/yworld/).
    -  This reply was modified 5 years ago by [Yworld](https://wordpress.org/support/users/yworld/).
    -  This reply was modified 5 years ago by [Yworld](https://wordpress.org/support/users/yworld/).
 *  Thread Starter [Yworld](https://wordpress.org/support/users/yworld/)
 * (@yworld)
 * [5 years ago](https://wordpress.org/support/topic/errors-when-using-memcache/#post-14523777)
 * [@m_uysl](https://wordpress.org/support/users/m_uysl/)
    Got this error again.
   I will be glad to any hints.
 *  Plugin Author [Mustafa Uysal](https://wordpress.org/support/users/m_uysl/)
 * (@m_uysl)
 * [5 years ago](https://wordpress.org/support/topic/errors-when-using-memcache/#post-14523784)
 * [@yworld](https://wordpress.org/support/users/yworld/),
 * The socket should be supported fine with something like – [https://wordpress.org/support/topic/memcached-with-unix-socket/#post-3939166](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/](https://wordpress.org/plugins/memcached/)
   too. I will check the other codes for PHP 8 compatibility for future versions.
 * Thanks for the feedback
 *  Plugin Author [Mustafa Uysal](https://wordpress.org/support/users/m_uysl/)
 * (@m_uysl)
 * [5 years ago](https://wordpress.org/support/topic/errors-when-using-memcache/#post-14523788)
 * > 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](https://wordpress.org/support/users/yworld/)
 * (@yworld)
 * [5 years ago](https://wordpress.org/support/topic/errors-when-using-memcache/#post-14523794)
 * [@m_uysl](https://wordpress.org/support/users/m_uysl/)
    I’ll check and write,
   thanks!
 *  Thread Starter [Yworld](https://wordpress.org/support/users/yworld/)
 * (@yworld)
 * [5 years ago](https://wordpress.org/support/topic/errors-when-using-memcache/#post-14524002)
 * [@m_uysl](https://wordpress.org/support/users/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 5 years ago by [Yworld](https://wordpress.org/support/users/yworld/).
 *  Plugin Author [Mustafa Uysal](https://wordpress.org/support/users/m_uysl/)
 * (@m_uysl)
 * [5 years ago](https://wordpress.org/support/topic/errors-when-using-memcache/#post-14524023)
 * [@yworld](https://wordpress.org/support/users/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](https://wordpress.org/support/users/yworld/)
 * (@yworld)
 * [5 years ago](https://wordpress.org/support/topic/errors-when-using-memcache/#post-14524051)
 * [@m_uysl](https://wordpress.org/support/users/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](https://wordpress.org/support/users/yworld/)
 * (@yworld)
 * [5 years ago](https://wordpress.org/support/topic/errors-when-using-memcache/#post-14524434)
 * [@m_uysl](https://wordpress.org/support/users/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.
 *  Plugin Author [Mustafa Uysal](https://wordpress.org/support/users/m_uysl/)
 * (@m_uysl)
 * [5 years ago](https://wordpress.org/support/topic/errors-when-using-memcache/#post-14525368)
 * Hi [@yworld](https://wordpress.org/support/users/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,

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘Errors when using Memcache’ is closed to new replies.

 * ![](https://ps.w.org/powered-cache/assets/icon.svg?rev=2796939)
 * [Powered Cache – Caching and Optimization for WordPress – Easily Improve PageSpeed & Web Vitals Score](https://wordpress.org/plugins/powered-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/powered-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/powered-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/powered-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/powered-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/powered-cache/reviews/)

 * 11 replies
 * 2 participants
 * Last reply from: [Mustafa Uysal](https://wordpress.org/support/users/m_uysl/)
 * Last activity: [5 years ago](https://wordpress.org/support/topic/errors-when-using-memcache/#post-14525368)
 * Status: resolved