Moving code to /app as cache needs direct path