added backwards compatibility for unsortable caches