• The plugin is storing the database error page in a non-English locale. I believe it is easy to fix, would you guys mind to include the fix in the next release?

    The function “w3_is_database_error” needs to be checking for
    ‘<title>’ . __(‘Database Error’) . ‘</title>’
    …rather than
    ‘<title>Database Error</title>’

    Thanks

    https://wordpress.org/plugins/w3-total-cache/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter martin.krcho

    (@martinkrcho)

    Did you have a chance to look at this problem? I decided to fix it on my site instead of waiting for the next release. Here’s the update code:

    /**
    * Check if there was database error
    *
    * @param string $content
    * @return boolean
    */
    function w3_is_database_error(&$content) {
    return (stristr($content, ‘<title>’ . __(‘Database Error’) . ‘</title>’) !== false);
    }

    Thread Starter martin.krcho

    (@martinkrcho)

    I noticed that you did not include this fix in the latest update. Would you mind to put it into the next one? Is anybody reading this?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Database error page cached with non-English locale’ is closed to new replies.