This is more of a performance-related question than an ’It won’t work’ question
In a snippet I’ve written I’m using
$data = $modx->getPageInfo($modx->documentIdentifier, 1, 'pagetitle, longtitle');
Given I am fetching page info for the current page, is there any way this is already accessible in the $modx object?