Object Cache and LiteSpeed Memcached (LSMCD) When Enabled Generating PHP Errors.




Wordpress LScache Plugin: Object Cache and LiteSpeed Memcached (LSMCD) When Enabled Generating PHP Errors.

Last Updated on: Wed, 15 Apr 2026 00:00:02
Hello, I have recently installed LiteSpeed Memcached (LSMCD), and enabled Object Cache. Everything seems to be working OK, but when checking error logs we discovered that Object Cache was generating PHP fatal errors. Because of this , we have currently disabled Object cache until we can resolve the issue. Report number: YAELUYJX Sample of PHP errors below (this is just one of many): [11-Oct-2021 13:55:42 UTC] PHP Warning: get_object_vars() expects parameter 1 to be object, array given in /public_html/wp-includes/class-wp-post.php on line 265 [11-Oct-2021 13:55:42 UTC] PHP Warning: Invalid argument supplied for foreach() in /public_html/wp-includes/class-wp-post.php on line 265 [11-Oct-2021 13:55:42 UTC] PHP Fatal error: Uncaught Error: Cannot use object of type stdClass as array in /public_html/wp-includes/meta.php:594 Stack trace: #0 /public_html/wp-includes/meta.php(509): get_metadata_raw(post, 46688, _wp_attached_fi?, true) #1 /public_html/wp-includes/post.php(2303): get_metadata(post, 46688, _wp_attached_fi?, true) #2 /public_html/wp-includes/post.php(555): get_post_meta(46688, _wp_attached_fi?, true) #3 /public_html/wp-includes/post.php(6583): get_attached_file(46688) #4 /public_html/wp-includes/post.php(6636): wp_attachment_is(image, Object(WP_Post)) #5 /public_html/wp-includes/media.php(192): wp_attachment_is_image(46688) #6 /public_html/wp-includes/media.php(953): image_downsize(46688, post-thumbnail) #7 /public_html/wp-includes/media.php(1028): wp_get_attachment_image_src(46688, post-thumbnail, false) #8 /public_html/wp-include in /public_html/wp-includes/meta.php on line 594 Hi, if you use regular memcached , does this same error show up on that ? Best regards, Hi @CacheCrawler Not with regular memcached. Currently regular memcached has been disabled and not installed, only LiteSpeed Memcached (LSMCD) is enabled. Hi, if it works with normal memcached but not LSMCD , then its more likely LSMCD-side issue instead of plugin-side issue please create a ticket on LiteSpeed websites for LSMCD issue Best regards, Hi @CacheCrawler Thanks for the link. I will create a ticket there.



LiteCache Rush: Speed comes from using less, not from doing it faster



Reference