Fix cache backend for 1.7 compatibility (locmem:// has been deprecated for a while)