Support » Plugin: Docket Cache - Object Cache Accelerator » PHP error when trying to delete Updraftplus backups

  • Resolved wpunder1sec

    (@wpunder1sec)


    Hi,

    Firstly, thank you for creating the plugin ๐Ÿ™‚

    It slows down Updraftplus when taking a backup

    When I try to delete backups it gives this error:

    PHP Fatal error (TypeError) has occurred during deleteset subaction. Error Message: Cannot access offset of type string on string (Code: 0, line 783 in /var/www/vhosts/wpunder1sec.com/httpdocs/wp-content/plugins/docket-cache/includes/src/Tweaks.php)

    and the backup deletion process hangs with this message:

    Deleting… Please allow time for the communications with the remote storage to complete.

    Please help, thank you! And have a great day!

    yours sincerely,

    Nick

    • This topic was modified 11 months, 4 weeks ago by wpunder1sec. Reason: formatting

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Nawawi Jamili

    (@nawawijamili)

    Hi Nick,

    Thank you for your report. Please disable “Configuration -> HTTP Request Expect header tweaks”. for quick fixs.

    Will try to fix this issue after test it with Updraftplus.

    Thanks.

    Plugin Author Nawawi Jamili

    (@nawawijamili)

    @wpunder1sec

    Please download and try dev version here https://docketcache.com/devtest/docket-cache-21.02.08-dev1.zip.

    Thanks.

    Thread Starter wpunder1sec

    (@wpunder1sec)

    Hi Nawawi,

    Firstly thank you for the quick reply. Secondly, thank you once again for the tweak, that works fine. I think I will wait till its fixed instead of installing the dev version (its a test site so no rush).

    Questions:

    1. Can Docket Cache be used with redis?
    2. What about with varnish?
    3. What are the ideal settings for a regular website and for a woocommerce store?
    4. Lastly, Docket Cache shows OPcache not available, but I checked and it’s enabled on the server

    I’m running it on a DO droplet with plesk (phpfpm apache). Thank you once again for creating this plugin, it’s amazing! Waiting to test a few things before leaving a review ๐Ÿ™‚

    Have a great day!

    yours sincerely,

    Nick

    Plugin Author Nawawi Jamili

    (@nawawijamili)

    Thank you for your question, try to answer the best I can.

    1. Can Docket Cache be used with redis?

    No. Docket Cache is an alternative to Redis/Memcache or any in-memory cache. Both Docket Cache and Redis plugins use WordPress object-cache.php drop-in file. Currently, it is not possible to use both.

    2. What about with varnish?

    Yes, it is possible. Varnish is a Web Proxy that operates the same as Squid or Cloudflare and it is for front-end (page cache). Docket Cache works on the back-end (object cache).

    3. What are the ideal settings for a regular website and for a woocommerce store?

    The default settings are suitable for regular or woocommerce websites. For specific optimisation settings, it depends on website setup theme, plugins and others.

    You may try to start with disable all settings and leave only “Advanced Post Caching”, “Optimize WP Query” and “Optimize Term Count Queries”. For WooCommerce, enable all settings in “WOO TWEAKS” sections.

    Use Ramdisk/Tmpfs to store the cache files. Please refer to https://docs.docketcache.com/faq#what-is-a-ram-disk-in-docket-cache.

    4. Lastly, Docket Cache shows OPcache not available, but I checked and itโ€™s enabled on the server

    Docket Cache detect if OPcache enables or not by using this logic function:

    
    public function is_opcache_enable()
    {
        try {
            return @ini_get('opcache.enable') && \function_exists('opcache_reset');
        } catch (\Throwable $e) {
            // rare condition on some hosting
            nwdcx_throwable(__METHOD__, $e);
        }
    
        return false;
    }
    

    File: https://github.com/nawawi/docket-cache/blob/master/includes/src/Filesystem.php#L505

    – If OPcache enables by setting “opcache.enable” to “1” at php.ini or other method configuration.
    – If OPcache extension (opcache.so) loaded and ready to use by checking “opcache_reset” function exists.

    You may try to run the command below to confirm the server setting and try to restart the apache/nginx and php-fpm service.

    # php -m |grep -i opcache
    Zend OPcache
    Zend OPcache

    # php -i |grep opcache.enable
    opcache.enable => On => On
    opcache.enable_cli => Off => Off
    opcache.enable_file_override => Off => Off

    Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘PHP error when trying to delete Updraftplus backups’ is closed to new replies.