Forum:I need some help with editing LocalSettings.php

I would like to have comments enabled on only specific pages. I assume that if we disable comments extension, comments can still be called from LocalSettings.php. I think this will do the thing, but I can't test it before we discuss about that solution: Will that work? Also, on some other wiki I would like to disable a cache for a main page only. Will this gonna work: