Support » Plugin: WP DB Driver » W3 Total Cache Conflict

  • Resolved alhaarth



    I was recently offered php 5.5 by my web host but presumably due to deprecation of MySql, your plugin has been the only way I have found to successfully run a wordpress site using it.

    However, I am using W3 Total Cache plugin which creates its own db.php in wp-content and continually overwrites the file generated by WP DB Driver. Can you suggest a fix for this?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Marko Heijnen


    I think W3 Total cache only needs that for database caching. So you don’t really need it.

    Thanks for the quick response, Marko.

    I tried disabling database caching in W3TC and it no longer overwrites the file but unfortunately it now removes the file completely without replacing it. Anything else I might try?

    Plugin Author Marko Heijnen


    Can’t you still install the db.php from this plugin through the API?

    Yes, I can install it without any problem but unfortunately it doesn’t stay there – the file is periodically removed.

    Plugin Author Marko Heijnen


    I can’t really do something about that. It’s something you need to discuss with Frederick Townes the developer of W3TC.

    Plugin Author Kurt Payne


    If you have “database cache” enabled in W3TC, please disable it. This should prevent the file from being written. As I understand, the functionality is also superseded by the object cache, so you shouldn’t notice a difference in performance.

    Thanks Kurt, I did disable the database cache in W3TC and it does indeed prevent the file from being written. However, even with this function disabled, any file named db.php that is present in the wp-content folder is removed.

    Confirmed – W3TC is overwriting db.php when database caching is enabled and deleting db.php when database caching is disabled. I found a solution that seems to work, here:

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘W3 Total Cache Conflict’ is closed to new replies.