Title: Two WordPress websites connected to one database, page cache issue
Last modified: July 7, 2020

---

# Two WordPress websites connected to one database, page cache issue

 *  Resolved [qpl88](https://wordpress.org/support/users/qpl88/)
 * (@qpl88)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/two-wordpress-websites-one-database-page-cache-issue/)
 * Hello,
 * We have two websites connected to the one database for security purposes. One
   is accessible for the WP backend and restricted via IP address and one is the
   front facing version of the website. e.g.
 * backend.website.com
    frontend.website.com
 * The frontend.website.com inherits the ‘backend.website.com’ URLs so we use ob_start()
   to replace backend.website.com to frontend.website.com.
 * This set up works well for us however we are trying to improve loading and so
   have given the page cache functionality a go. When we enable ‘page cache’ the
   ob_start() seems to be ignored or overwritten and so the cache generated pages
   on the frontend.website.com contain the links to backend.webesite.com. Do you
   have any solution for this or a possibly a hook for us to tie into the page caching
   method you use on the plugin to allow us to use the ob_start() or similar?
 * I hope this makes sense, tried to explain it as best I could but let me know 
   if you need any more clarification on this and hope to hear from you.
 * Thanks in advance!
    -  This topic was modified 6 years, 2 months ago by [qpl88](https://wordpress.org/support/users/qpl88/).

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Contributor [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/two-wordpress-websites-one-database-page-cache-issue/#post-13087575)
 * Hello [@qpl88](https://wordpress.org/support/users/qpl88/)
 * Thank you for your inquiry and I am happy to assist you with this.
 * Can you please share some examples of a specific use case so we can check it 
   and possibly try to replicate it?
    Thanks!
 *  Thread Starter [qpl88](https://wordpress.org/support/users/qpl88/)
 * (@qpl88)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/two-wordpress-websites-one-database-page-cache-issue/#post-13102832)
 * Hi Marko,
 * Thanks for getting back to me and apologies for the delay, I’ve just been speaking
   with management about what I can send to you. Is there any chance in making this
   ticket private before sending you examples of what I mean?
 * Kind regards,
    Pablo
 *  Plugin Contributor [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/two-wordpress-websites-one-database-page-cache-issue/#post-13104420)
 * Hello [@qpl88](https://wordpress.org/support/users/qpl88/)
 * This is a public forum and not really a ticketing system so the only way is to
   drop us a note via the plugin in Performance>Support, or via our website [https://www.w3-edge.com/contact/](https://www.w3-edge.com/contact/)
   
   Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Two WordPress websites connected to one database, page cache issue’ is
closed to new replies.

 * ![](https://ps.w.org/w3-total-cache/assets/icon-256x256.png?rev=1041806)
 * [W3 Total Cache](https://wordpress.org/plugins/w3-total-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/w3-total-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/w3-total-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/w3-total-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/w3-total-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/w3-total-cache/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * Last activity: [6 years, 2 months ago](https://wordpress.org/support/topic/two-wordpress-websites-one-database-page-cache-issue/#post-13104420)
 * Status: resolved