Hello, I'm trying to cache some queries. Everything works correctly, but I encounter issues when I try to insert one or more external variables into the function:
$name = $cache->get('cachedname', "+2 minutes", function($pages) {
return $pages->find("template=names, parent=1195, id=$nameid, status=published, limit=3");
});
Can you help me?