Fixed empty cache in subdirectory