Index: nodecomment.module
===================================================================
--- nodecomment.module
+++ nodecomment.module
@@ -88,7 +88,7 @@
     // Add node-comment-$type after node-comment AND the specific node type.
     array_splice($vars['template_files'], 1, 0, 'node-comment-'. $node->type);

-    if (isset($node->view) && ($cache = $node->view->display_handler->get_cache_plugin()) && get_class($cache) != 'views_plugin_cache_none') {
+    if (isset($node->view) && ($cache = $node->view->display_handler->get_plugin('cache')) && get_class($cache) != 'views_plugin_cache_none') {
       // Caching is enabled, so use tokens instead of real values.
       $vars['new'] = '';
       $vars['first_new'] = "<!--post:first-new-$node->nid-->";
