• Resolved redhat

    (@redhat)


    i Can see this error almost 7 in my log file Need Help

    WordPress database error Lost connection to MySQL server during query for query SELECT option_value FROM xyz_options WHERE option_name = ‘woocommerce_thumbnail_cropping’ LIMIT 1 made by require_once(‘wp-load.php’), require_once(‘wp-config.php’), require_once(‘wp-settings.php’), do_action(‘after_setup_theme’), WP_Hook->do_action, WP_Hook->apply_filters, woodmart_add_image_size, wc_get_image_size, get_option, W3TC\DbCache_WpdbNew->query, W3TC\DbCache_WpdbInjection_QueryCaching->query, W3TC\_CallUnderlying->query, W3TC\DbCache_WpdbNew->query, W3TC\DbCache_WpdbInjection->query, W3TC\DbCache_WpdbNew->default_query

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @redhat

    I am sorry about the issue you are experiencing and I am happy to assist you with this. Are you on a shared server or VPS? Are you using both DB cache and Object Cache? When did this issue start to occur? have you made any changes?
    Thank you!

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    No activity for a week. Marking issue as resolved!

    Thread Starter redhat

    (@redhat)

    Hey @vmarko

    Really Sorry For the late reply as i was out on vacation.

    yes i am using shared server,

    Are you using both DB cache and Object Cache? – no i am just using db cache

    When did this issue start to occur? Since i have installed the plugin.

    have you made any changes? – No

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @redhat

    WordPress website utilizes database quite a lot. And database caching allows to decrease database usage. Database caching allows to cache database request results.
    Database caching can make your site faster if the time needed to get data from the database is more than the time needed to get data from the cache.
    So, if you are on a shared hosting, then RAM-based caching is likely to be unavailable for you. And disk-based caching is not that efficient. In other words, if you are on a shared hosting, it’s recommended not to use database caching.
    Moreover, using disk-database caching (on a shared hosting) can make your site slower. This is so because getting data from the database can be faster than getting cached data from the disk.
    You should try using Object Caching instead.
    Object Cache allows getting data from the database more efficiently. Its purpose is similar to what Database Cache does. But compared to Database Cache, Object cache is more efficient as it allows to process fewer requests.

    As a rule of thumb, Object Cache is not worth using on shared hosting for the same reason as Database Cache, i.e. database is often not the performance bottleneck, but disk input-output operations.
    Thank you!

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

The topic ‘Error In log File’ is closed to new replies.