made caching configurable, added file listing cache