• Resolved Yworld

    (@yworld)


    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 3 years, 9 months ago by Yworld.
    • This topic was modified 3 years, 9 months ago by Yworld.
    • This topic was modified 3 years, 9 months ago by Yworld.
Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Mustafa Uysal

    (@m_uysl)

    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,

    • This reply was modified 3 years, 9 months ago by Mustafa Uysal.
    Thread Starter Yworld

    (@yworld)

    @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 3 years, 9 months ago by Yworld.
    • This reply was modified 3 years, 9 months ago by Yworld.
    • This reply was modified 3 years, 9 months ago by Yworld.
    • This reply was modified 3 years, 9 months ago by Yworld.
    Thread Starter Yworld

    (@yworld)

    @m_uysl
    Got this error again. I will be glad to any hints.

    Plugin Author Mustafa Uysal

    (@m_uysl)

    @yworld,

    The socket should be supported fine with something like – https://www.ads-software.com/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://www.ads-software.com/plugins/memcached/ too. I will check the other codes for PHP 8 compatibility for future versions.

    Thanks for the feedback

    Plugin Author Mustafa Uysal

    (@m_uysl)

    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 3 years, 9 months ago by Yworld.
    Plugin Author Mustafa Uysal

    (@m_uysl)

    @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.

    Plugin Author Mustafa Uysal

    (@m_uysl)

    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,

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Errors when using Memcache’ is closed to new replies.