# White screen of death - Sage can't find compiled templates after WPE deploy

**URL:** https://discourse.roots.io/t/white-screen-of-death-sage-cant-find-compiled-templates-after-wpe-deploy/15523
**Category:** sage
**Created:** 2019-05-14T04:02:49Z
**Posts:** 10
**Showing post:** 8 of 10

## Post 8 by @mmirus — 2019-05-14T21:05:53Z

Yup, I ran Sage 9 on WP Engine for a long time, and all you need to do is update the `compiled` path in `config/view.php`. Using `'compiled' => '/tmp/sage-cache'` should work fine with no additional customization needed:

> [@Sage 9 on WPEngine](https://discourse.roots.io/t/sage-9-on-wpengine/9090/24):
>
> So I just got word from a senior WPE tech saying they aren’t going to allow these NGINX before in-rules anymore due to security problems that could potentially arise with other users installs. But in that frustrating discussion, he pointed me to the simplest solution I’ve found for generating these cache files on production. Here’s an email from the tech: I’m still looking into this myself to see what I can find, but I think one potential solution would be to change where the cache files are…

Once you make that change it should be able to compile your templates no problem unless something changed over the last few months since we switched.

---

_[View the full topic](https://discourse.roots.io/t/white-screen-of-death-sage-cant-find-compiled-templates-after-wpe-deploy/15523)._
