• Resolved ericcool

    (@ericcool)


    It seems my cache does not work. The following is the debug log when I access wp-admin page.

    The Object Cache and DB cache does not cache anything.

    <!–
    Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/

    Object Caching 0/12 objects using memcached

    Object Cache debug info:
    Caching: enabled
    Total calls: 12
    Cache hits: 0
    Total time: 0.0096
    Page Caching using disk: enhanced{w3tc_pagecache_reject_reason}

    Page cache debug info:
    Engine: disk: enhanced
    Cache key:
    Creation Time: 1605801269.000s
    Header info:
    X-Frame-Options: SAMEORIGIN
    Referrer-Policy: strict-origin-when-cross-origin
    Expires: Wed, 11 Jan 1984 05:00:00 GMT
    Cache-Control: no-cache, must-revalidate, max-age=0
    Content-Type: text/html; charset=UTF-8
    Set-Cookie: wp-settings-1=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; Max-Age=0; path=/; secure
    Set-Cookie: wp-settings-time-1=1605801269; expires=Fri, 19-Nov-2021 15:54:29 GMT; Max-Age=31536000; path=/; secure

    Database Caching using memcached (Request-wide wp-admin)

    Db cache debug info:
    Total queries: 58
    Cached queries: 0
    Total query time: 0.0179

    Served from: temp1.goshop101.com.tw @ 2020-11-19 23:54:29 by W3 Total Cache
    –>

    Therefore, the sql still execute wp_options every time.
    https://ibb.co/PwJfFyS

    The following is the results of Compatibility Check.

    Installed/Ok/Yes/True: Functionality will work properly.
    Not detected/Not installed/Off: May be installed, but cannot be automatically confirmed. Functionality will be limited.
    Not Installed/Error/No/False: Plugin or some functions may not work.
    Server Modules & Resources:
    Plugin Version: 0.15.2
    PHP Version: 7.4.8;
    Web Server: Apache
    FTP functions: Installed (required for Self-hosted (FTP) CDN support)
    Multibyte String support: Installed (required for Rackspace Cloud Files support)
    cURL extension: Installed (required for Amazon S3, Amazon CloudFront, Rackspace CloudFiles support)
    zlib extension: Installed (required for gzip compression support)
    brotli extension: Not installed (required for brotli compression support)
    Opcode cache: Installed (OPCache)
    Memcached extension: Installed
    Memcache extension: Not installed
    Redis extension: Not installed
    HTML Tidy extension: Not installed (required for HTML Tidy minifier support)
    Mime type detection: Installed (Fileinfo) (required for CDN support)
    Hash function: Installed (hash) (required for NetDNA / MaxCDN CDN purge support)
    Open basedir: Off
    zlib output compression: Off
    set_time_limit: Available
    SSH2 extension: Not installed (required for Self-hosted (FTP) CDN SFTP support)
    mod_deflate: Installed (required for disk enhanced Page Cache and Browser Cache)
    mod_env: Installed (required for disk enhanced Page Cache and Browser Cache)
    mod_expires: Not installed (required for disk enhanced Page Cache and Browser Cache)
    mod_filter: Installed (required for disk enhanced Page Cache and Browser Cache)
    mod_ext_filter: Not installed (required for disk enhanced Page Cache and Browser Cache)
    mod_headers: Not installed (required for disk enhanced Page Cache and Browser Cache)
    mod_mime: Installed (required for disk enhanced Page Cache and Browser Cache)
    mod_rewrite: Installed (required for disk enhanced Page Cache and Browser Cache)
    mod_setenvif: Installed (required for disk enhanced Page Cache and Browser Cache)
    WordPress Resources
    /var/www/temp1.goshop101.com.tw/.htaccess: OK
    /var/www/temp1.goshop101.com.tw/wp-content: OK
    /var/www/temp1.goshop101.com.tw/wp-content/uploads/2020/11: OK
    Fancy permalinks: /%year%/%monthnum%/%day%/%postname%/
    WP_CACHE define: Defined (true)
    URL rewrite: Enabled
    Network mode: No

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

    (@vmarko)

    Hello @ericcool

    Thank you for your inquiry and I’m happy to assist you with this.
    I am not quite sure what do you mean by

    Wp_options is not cached

    wp-options cannot and should not be cached.
    By default, WordPress stores transients in your wp_options table with autoloading set to ‘yes’.
    When you install Memcached, your transients are now stored in your object cache but your old transients are still in wp_options. To fix this, run the following SQL:
    delete from wp_options where autoload = 'yes' and option_name like 'transient%';
    In Performance>Object Cache there is an option to Enable caching for wp-admin requests.
    It’s not advisable to this as it may cause side-effects, and possibly those are the transients in wp-options if wp_admin requests are not cached.
    Thanks!

Viewing 1 replies (of 1 total)

The topic ‘Wp_options is not cached in /wp-admin/’ is closed to new replies.