Well it didnt work because a wrong path, it has to be:Hardcoding the absolute path to an entry in a configurable cache engine is not a valid solution. All that you need to do this properly is available via the cacheManager API, as I described above.
$ck = MODX_CORE_PATH . "cache/resource/" . $modx->resource->getCacheKey();
...when I clear the cache using xPDO for newly created resources, it probably doesnt delete some important cache to be able to create url via makeUrl, Now it always return empty value...
$modx->cacheManager->refresh(array(
'context_settings' => array('contexts' => array('web'))
));