Fixed rendered caching if real path cache is enabled

Signed-off-by: Kristián Feldsam <feldsam@gmail.com>