Move definition of cache dir into method since DATA_DIR is not defined until later.
Use document root in file path filter since __FILE__ is no longer the install root.