I was wondering what the best (fastest/lesses computing power) aproach in using PW API variables inside the $cache function call?
(not actual code)
Example 1
echo $cache->get("example-1", function($user,$page,$pages) {}
Example 2
echo $cache->get("example-2", function() use($user,$page,$pages) {}
Example 3
echo $cache->get("example-3", function() {
$user = wire('user');
$page = wire('page');
$pages = wire('pages');
}