WordPress.org

Ready to get started?Download WordPress

Forums

WP DB Driver
[resolved] W3 Total Cache Conflict (9 posts)

  1. alhaarth
    Member
    Posted 8 months ago #

    Hi,

    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?

    http://wordpress.org/plugins/wp-db-driver/

  2. Marko Heijnen
    Member
    Plugin Author

    Posted 8 months ago #

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

  3. alhaarth
    Member
    Posted 8 months ago #

    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?

  4. Marko Heijnen
    Member
    Plugin Author

    Posted 8 months ago #

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

  5. alhaarth
    Member
    Posted 8 months ago #

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

  6. Marko Heijnen
    Member
    Plugin Author

    Posted 8 months ago #

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

  7. Kurt Payne
    Member
    Plugin Author

    Posted 8 months ago #

    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.

  8. alhaarth
    Member
    Posted 8 months ago #

    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.

  9. alhaarth
    Member
    Posted 8 months ago #

    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:

    http://wordpress.org/support/topic/newest-versions-of-w3tc-force-delete-dbphp?replies=4

Reply

You must log in to post.

About this Plugin

About this Topic