• Hi, I use the redis object cache to speed up the site and I noticed that the redis object cache was not getting any stats. After some investigation it seems My Tickets is flushing it all the time.

    Here is the stack trace for the flush being called

    4 /var/www/wordpress/wp-content/object-cache.php(149): WP_Object_Cache->flush() 5 /var/www/wordpress/wp-content/plugins/my-tickets/mt-cart-handler.php(632): wp_cache_flush() 6 /var/www/wordpress/wp-content/plugins/my-tickets/includes/data-utilities.php(140): mt_refresh_cache() 7 /var/www/wordpress/wp-content/plugins/my-tickets/includes/data-utilities.php(422): mt_delete_data(‘…’) 8 /var/www/wordpress/wp-includes/class-wp-hook.php(324): mt_is_cart_expired(”) 9 /var/www/wordpress/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) 10 /var/www/wordpress/wp-includes/plugin.php(517): WP_Hook->do_action(Array) 11 /var/www/wordpress/wp-settings.php(704): do_action(‘…’) 12 /var/www/wordpress/wp-config.php(80): require_once(‘…’) 13 /var/www/wordpress/wp-load.php(50): require_once(‘…’) 14 /var/www/wordpress/wp-blog-header.php(13): require_once(‘…’) 15 /var/www/wordpress/index.php(17): require(‘…’)

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Joe Dolson

    (@joedolson)

    I’ll look into this. It should only get flushed when shopping cart data is saved or deleted, and that definitely shouldn’t be *constant.*

    Thread Starter mickwall

    (@mickwall)

    Hi Joe, the recent versions still exhibit this issue – thanks for any help.

    Thread Starter mickwall

    (@mickwall)

    I saw the latest update had a cache entry in the changelog but I am still seeing the cache being flushed all the time

    Stack trace is here

    2025-04-08T08:44:16+00:00
    array(1) {
    [0]=>
    bool(true)
    } 0 /var/www/wordpress/wp-includes/class-wp-hook.php(324): {closure}(Array, 0, NULL, NULL, 0.00073814392089844) 1 /var/www/wordpress/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(”, Array) 2 /var/www/wordpress/wp-includes/plugin.php(517): WP_Hook->do_action(Array) 3 /var/www/wordpress/wp-content/object-cache.php(1748): do_action(‘…’, Array, 0, NULL, NULL, 0.00073814392089844) 4 /var/www/wordpress/wp-content/object-cache.php(149): WP_Object_Cache->flush() 5 /var/www/wordpress/wp-content/plugins/my-tickets/mt-cart-handler.php(632): wp_cache_flush() 6 /var/www/wordpress/wp-content/plugins/my-tickets/includes/data-utilities.php(139): mt_refresh_cache() 7 /var/www/wordpress/wp-content/plugins/my-tickets/includes/data-utilities.php(455): mt_delete_data(‘…’) 8 /var/www/wordpress/wp-includes/class-wp-hook.php(324): mt_is_cart_expired(”) 9 /var/www/wordpress/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) 10 /var/www/wordpress/wp-includes/plugin.php(517): WP_Hook->do_action(Array) 11 /var/www/wordpress/wp-settings.php(707): do_action(‘…’) 12 /var/www/wordpress/wp-config.php(81): require_once(‘…’) 13 /var/www/wordpress/wp-load.php(50): require_once(‘…’) 14 /var/www/wordpress/wp-blog-header.php(13): require_once(‘…’) 15 /var/www/wordpress/index.php(17): require(‘…’)

    Thanks for looking

    Plugin Author Joe Dolson

    (@joedolson)

    I didn’t expect the last release to fix this issue; it did however eliminate a duplicate flush. I’m still not sure why this is firing as often as it is, but didn’t have time to explore it in the last release.

    Thread Starter mickwall

    (@mickwall)

    OK, thanks Joe – for now I am commenting out the troublesome flush as its really slows the backoffice down.

    Plugin Author Joe Dolson

    (@joedolson)

    So I had not previously realized that this was impacting the admin, and that pointed me in what I suspect is the right direction; this should be fixed in the next release.

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.