# Different ghost same database

**URL:** <https://forum.ghost.org/t/different-ghost-same-database/2182>\
**Category:** Installation\
**Created:** [July 29, 2018, 1:11pm UTC](https://forum.ghost.org/t/different-ghost-same-database/2182 "2018-07-29T13:11:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![andrewyg](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/andrewyg/32/993_2.png) [@andrewyg](https://forum.ghost.org/u/andrewyg)\
**Post date:** [July 29, 2018, 1:11pm UTC](https://forum.ghost.org/t/different-ghost-same-database/2182/1 "2018-07-29T13:11:15Z")

</div>

Just wondering,  
Can you have two ghost installation with the same database? So let’s say there is `g1` and `g2`, is it possible for them to share the same database like `db1_prod`? So when `g1` update a post, `g2`'s post will also update.

---

<div class="post-metadata">

**Author:** ![Kevin](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/kevin/32/32_2.png) [@Kevin](https://forum.ghost.org/u/Kevin)\
**Post date:** [July 30, 2018, 8:47am UTC](https://forum.ghost.org/t/different-ghost-same-database/2182/2 "2018-07-30T08:47:45Z")

</div>

No that’s not possible. Ghost uses in-memory caching so you’ll get some odd behaviour between the two Ghost instances if they are both using the same database.

There is a proposal to externalise the cache which would allow for multiple instance setups [External in-memory cache option](https://forum.ghost.org/t/external-in-memory-cache-option/1140)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/2X/b/ba9ce5100b8bb264586f4f572545596b2ce3f081.png) [@system](https://forum.ghost.org/u/system)\
**Post date:** [August 13, 2018, 8:47am UTC](https://forum.ghost.org/t/different-ghost-same-database/2182/3 "2018-08-13T08:47:46Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
