If you use an UNLOGGED table in Postgres as a cache, and your DB restarts, you no longer have a cache. Then your main table gets a huge spike in traffic and likely grinds to a halt.
If your cache is so performance critical that you can't lose the data then it sounds like you need a (denormalized) database.