• Resolved windspeed

    (@windspeed)


    I’m trying to sort out some fatal errors on my website. My ISP person has suggested it could be caused because the database is being loaded into memory and that I should look at the size of my database. It’s is 302mb (which apparently is large?) and over a quarter of it seems to be in these Scheduled actions so I’m looking into that as a first step.
    I have over 41,000 Scheduled actions that go back over 3 years.
    These are under the hooks (whatever they are) of
    wde_delivery_status, wde_hardtofind_push, wde_update_check, wde_postmanifest_updates
    and action_scheduler/migration_hook.
    1. Is 41,000 right for a small website that sells maybe 100 units a month?
    2. Why are completed ones from 2 years ago still there?
    3. Can I delete these?
    Thanks
    Chris

    
    ### WordPress Environment ###
    
    WordPress address (URL): https://lekite.com.au
    Site address (URL): https://lekite.com.au
    WC Version: 6.2.0
    REST API Version: ? 6.2.0
    WC Blocks Version: ? 6.7.3
    Action Scheduler Version: ? 3.4.0
    WC Admin Version: ? 3.1.0
    Log Directory Writable: ?
    WP Version: 5.9
    WP Multisite: –
    WP Memory Limit: 256 MB
    WP Debug Mode: –
    WP Cron: ?
    Language: en_US
    External object cache: –
    
    ### Server Environment ###
    
    Server Info: CentOS WebPanel: Protected by Mod Security
    PHP Version: 7.3.3
    PHP Post Max Size: 20 MB
    PHP Time Limit: 120
    PHP Max Input Vars: 1000
    cURL Version: 7.29.0
    NSS/3.53.1
    
    SUHOSIN Installed: –
    MySQL Version: 5.5.5-10.1.47-MariaDB
    Max Upload Size: 20 MB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ?
    
    ### Database ###
    
    WC Database Version: 6.2.0
    WC Database Prefix: wp_
    Total Database Size: 300.71MB
    Database Data Size: 248.52MB
    Database Index Size: 52.19MB
    wp_woocommerce_sessions: Data: 2.02MB + Index: 0.06MB + Engine InnoDB
    wp_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_woocommerce_order_items: Data: 0.33MB + Index: 0.13MB + Engine InnoDB
    wp_woocommerce_order_itemmeta: Data: 2.48MB + Index: 3.02MB + Engine InnoDB
    wp_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_actionscheduler_actions: Data: 34.09MB + Index: 17.13MB + Engine InnoDB
    wp_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_actionscheduler_logs: Data: 11.05MB + Index: 10.03MB + Engine InnoDB
    wp_commentmeta: Data: 0.05MB + Index: 0.03MB + Engine InnoDB
    wp_comments: Data: 1.50MB + Index: 0.86MB + Engine InnoDB
    wp_e_submissions: Data: 0.02MB + Index: 0.27MB + Engine InnoDB
    wp_e_submissions_actions_log: Data: 0.02MB + Index: 0.11MB + Engine InnoDB
    wp_e_submissions_values: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_nextend2_image_storage: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_nextend2_section_storage: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_nextend2_smartslider3_generators: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_nextend2_smartslider3_sliders: Data: 0.03MB + Index: 0.03MB + Engine InnoDB
    wp_nextend2_smartslider3_sliders_xref: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_nextend2_smartslider3_slides: Data: 0.09MB + Index: 0.13MB + Engine InnoDB
    wp_options: Data: 7.06MB + Index: 0.14MB + Engine InnoDB
    wp_postmeta: Data: 105.52MB + Index: 10.80MB + Engine InnoDB
    wp_posts: Data: 61.44MB + Index: 1.36MB + Engine InnoDB
    wp_revslider_css: Data: 0.13MB + Index: 0.00MB + Engine InnoDB
    wp_revslider_layer_animations: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_revslider_navigations: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_revslider_sliders: Data: 0.05MB + Index: 0.00MB + Engine InnoDB
    wp_revslider_slides: Data: 0.09MB + Index: 0.00MB + Engine InnoDB
    wp_revslider_static_slides: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_star_testimonial_settings: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_strong_views: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_terms: Data: 0.08MB + Index: 0.09MB + Engine InnoDB
    wp_term_relationships: Data: 0.09MB + Index: 0.06MB + Engine InnoDB
    wp_term_taxonomy: Data: 0.09MB + Index: 0.13MB + Engine InnoDB
    wp_testimonial_slider: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_testimonial_slider_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_testimonial_slider_postmeta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_usermeta: Data: 2.52MB + Index: 2.94MB + Engine InnoDB
    wp_users: Data: 0.11MB + Index: 0.08MB + Engine InnoDB
    wp_vtprd_purchase_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_vtprd_purchase_log_product: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_vtprd_purchase_log_product_rule: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wcpdf_invoice_number: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wcpdf_packing_slip_number: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wc_admin_notes: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wc_customer_lookup: Data: 0.45MB + Index: 0.39MB + Engine InnoDB
    wp_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_order_product_lookup: Data: 1.34MB + Index: 0.78MB + Engine InnoDB
    wp_wc_order_stats: Data: 0.33MB + Index: 0.28MB + Engine InnoDB
    wp_wc_order_tax_lookup: Data: 0.17MB + Index: 0.16MB + Engine InnoDB
    wp_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
    wp_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wde_label_layouts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wde_orders: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wde_order_items: Data: 0.06MB + Index: 0.00MB + Engine InnoDB
    wp_wde_parcel_sizes: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wde_postage_products: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wde_shipments: Data: 0.30MB + Index: 0.08MB + Engine InnoDB
    wp_wde_shipment_items: Data: 0.38MB + Index: 0.00MB + Engine InnoDB
    wp_wde_shipsvcs: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wde_validated_locations: Data: 1.52MB + Index: 0.00MB + Engine InnoDB
    wp_wdr_order_discounts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wdr_order_item_discounts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wdr_rules: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wfblockediplog: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wfblocks7: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_wfconfig: Data: 1.28MB + Index: 0.00MB + Engine InnoDB
    wp_wfcrawlers: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wffilechanges: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wffilemods: Data: 5.52MB + Index: 0.00MB + Engine InnoDB
    wp_wfhits: Data: 1.02MB + Index: 0.19MB + Engine InnoDB
    wp_wfhoover: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wfissues: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_wfknownfilelist: Data: 2.52MB + Index: 0.00MB + Engine InnoDB
    wp_wflivetraffichuman: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wflocs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wflogins: Data: 0.38MB + Index: 0.16MB + Engine InnoDB
    wp_wfls_2fa_secrets: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wfls_settings: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wfnotifications: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wfpendingissues: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_wfpklist_template_data: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wfreversecache: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wfsnipcache: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_wfstatus: Data: 0.13MB + Index: 0.11MB + Engine InnoDB
    wp_wftrafficrates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wpfm_backup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wpforms_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_yoast_indexable: Data: 2.52MB + Index: 1.34MB + Engine InnoDB
    wp_yoast_indexable_hierarchy: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_yoast_migrations: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_yoast_primary_term: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_yoast_prominent_words: Data: 0.05MB + Index: 0.03MB + Engine InnoDB
    wp_yoast_seo_links: Data: 0.16MB + Index: 0.06MB + Engine InnoDB
    wp_yoast_seo_meta: Data: 0.09MB + Index: 0.00MB + Engine InnoDB
    
    ### Post Type Counts ###
    
    attachment: 530
    br_minmax_limitation: 1
    custom_css: 2
    elementor_library: 14
    nav_menu_item: 30
    oceanwp_library: 2
    oembed_cache: 8
    page: 42
    post: 4
    product: 70
    product_variation: 34
    pw_bogo: 1
    revision: 3444
    shop_coupon: 1
    shop_order: 4337
    shop_order_refund: 19
    sp_tfree_shortcodes: 1
    spt_testimonial: 2
    spucpt: 3
    stars_testimonial: 2
    testimonial: 4
    testimonial_rotator: 1
    tss-sc: 1
    urp_review: 9
    wc_afrsm: 6
    woo_discount: 1
    woo_discount_cart: 1
    wpcf7_contact_form: 4
    wpm-testimonial: 5
    wppopups: 3
    
    ### Security ###
    
    Secure connection (HTTPS): ?
    Hide errors from visitors: ?
    
    ### Active Plugins (32) ###
    
    Autoptimize: by Frank Goossens (futtta) – 2.9.5.1
    Call Now Button: by Jerry Rietveld – 1.0.7
    Classic Editor: by WordPress Contributors – 1.6.2
    Contact Form 7 WooCommerce Order Dropdown Field: by Codeboxr Team – 1.0.5
    Contact Form 7: by Takayuki Miyoshi – 5.5.5
    Customer Reviews for WooCommerce: by CusRev – 4.37
    Disable Admin Notices Individually: by Creative Motion  – 1.2.8
    Duplicate Page or Post: by wpdevart – 1.5.3
    Elementor Pro: by Elementor.com – 3.5.1
    Elementor: by Elementor.com – 3.5.5
    Envato Elements: by Envato – 2.0.11
    Min and Max Quantity for WooCommerce: by BeRocket – 1.3.2.3
    Ocean Extra: by OceanWP – 1.9.3
    Really Simple SSL: by Really Simple Plugins – 5.2.3
    Slider Revolution: by ThemePunch – 5.4.8.1
    Strong Testimonials: by WPChill – 2.51.6
    UpdraftPlus - Backup/Restore: by UpdraftPlus.Com
    DavidAnderson – 1.22.1
    
    Woo Discount Rules: by Flycart – 2.3.13
    Advanced Flat Rate Shipping For WooCommerce: by theDotstore – 4.0.1
    Variation Swatches for WooCommerce: by Emran Ahmed – 1.1.19
    WebDev WooCommerce eParcel: by WebDev – 1.6.1
    WooCommerce Eway Payment Gateway: by WooCommerce – 3.4.1
    WooCommerce HTML5 Video: by Webilop – 1.7.10
    WooCommerce PayPal Pro: by wp.insider – 2.9.10
    WooCommerce PDF Invoices & Packing Slips: by WP Overnight – 2.13.0
    WooCommerce PDF Invoices & Packing Slips Premium Templates: by Ewout Fernhout – 2.17.0
    WooCommerce: by Automattic – 6.2.0
    Wordfence Security: by Wordfence – 7.5.8
    Yoast SEO Premium: by Team Yoast – 14.7
    WP Fastest Cache: by Emre Vona – 0.9.8
    WP Popups Lite: by timersys – 2.1.4.5
    WP Overnight Sidekick: by Jeremiah Prummer
    Ewout Fernhout
    Michael Kluver – 2.4.0
    
    ### Inactive Plugins (2) ###
    
    Disable plugins / themes updates: by vinvin27 – 1.1.1.2
    WPS Hide Login: by WPServeur
    NicolasKulka
    wpformation – 1.9.3
    
    ### Settings ###
    
    API Enabled: –
    Force SSL: –
    Currency: AUD ($)
    Currency Position: left_space
    Thousand Separator: ,
    Decimal Separator: .
    Number of Decimals: 2
    Taxonomies: Product Types: external (external)
    grouped (grouped)
    simple (simple)
    variable (variable)
    
    Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)
    exclude-from-search (exclude-from-search)
    featured (featured)
    outofstock (outofstock)
    rated-1 (rated-1)
    rated-2 (rated-2)
    rated-3 (rated-3)
    rated-4 (rated-4)
    rated-5 (rated-5)
    
    Connected to WooCommerce.com: –
    
    ### WC Pages ###
    
    Shop base: #1030 - /shop/
    Cart: #1031 - /cart/
    Checkout: #1032 - /checkout/
    My account: #1033 - /my-account/
    Terms and conditions: #2304 - /postage-and-delivery/
    
    ### Theme ###
    
    Name: OceanWP Child
    Version: 1.0
    Author URL: https://codex-themes.com/thegem/
    Child Theme: ?
    Parent Theme Name: OceanWP
    Parent Theme Version: 3.1.1 – 3.1.3 is available
    Parent Theme Author URL: https://oceanwp.org/about-me/
    WooCommerce Support: ?
    
    ### Templates ###
    
    Overrides: oceanwp-child/woocommerce/archive-product.php
    oceanwp-child/woocommerce/cart/cart.php version 3.4.0 is out of date. The core version is 3.8.0
    oceanwp/woocommerce/cart/mini-cart.php
    oceanwp-child/woocommerce/content-single-product.php version 3.4.0 is out of date. The core version is 3.6.0
    oceanwp-child/woocommerce/global/breadcrumb.php
    oceanwp/woocommerce/loop/loop-start.php
    oceanwp-child/woocommerce/single-product/price.php
    oceanwp/woocommerce/single-product/title.php
    oceanwp-child/woocommerce/single-product-reviews.php version 3.2.0 is out of date. The core version is 4.3.0
    oceanwp-child/woocommerce/single-product.php
    
    Outdated Templates: ?
    					
    					
    						Learn how to update
    
    ### Action Scheduler ###
    
    Canceled: 1
    Oldest: 2022-01-23 18:27:13 +1000
    Newest: 2022-01-23 18:27:13 +1000
    
    Complete: 40,987
    Oldest: 2022-01-15 19:28:14 +1000
    Newest: 2022-02-15 19:26:46 +1000
    
    Failed: 33
    Oldest: 2020-12-19 12:50:01 +1000
    Newest: 2022-01-31 20:26:29 +1000
    
    Pending: 3
    Oldest: 2022-02-15 19:28:45 +1000
    Newest: 2022-02-15 19:28:46 +1000
    
    ### Status report information ###
    
    Generated at: 2022-02-15 19:28:02 +10:00
    

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi @windspeed! How’s it going today?

    I’m sure this is already on your radar, but just a quick context, the Action Scheduled is a system that triggers and runs events. Those events are, usually, requested by WooCommerce or any other third-party plugin.

    That being said, I’d take a closer look at all those canceled/failed/pending actions that you have.

    The best way to diagnose it is using a plugin called WP-Crontrol, it will check for errors on your Cron jobs.

    If you find any, you can try to run it again, by hovering your mouse over it.

    I’d also recommend checking the article below on how to clear your Action Scheduler queue:

    https://nickgreen.info/clearing-a-clogged-action-scheduler-queue-woocommerce/

    Let us know how it goes! My very best!

    Thread Starter windspeed

    (@windspeed)

    Hi Andre’,
    thanks for the great answer, I will install WR-Crontrol tonight and begin the process for both of those things.
    That actually was the small part of the 302mb database size, the bulk of it (180mb) seems to be in ‘post data’ and I’m told this is probably old woocommerce sales records etc as there are a number of warnings about lengthy records created by woocommerce PDF creator. Could it be I have a setting wrong that is storing these in the wrong way or for too long? Where will I search to find these settings and how do I archive or delete the old ones? Thanks again.
    Chris

    Hello there,

    A database is created to store data and it involves all aspects of your site, there is no standard size for a database, my recommendation is to check if the issue is solved after installed WP Crontrol.

    As a reference, if you would like to reduce the size of your database you can check this blog.

    I hope this provides clarity.

    Thread Starter windspeed

    (@windspeed)

    Hi everyone,
    Thanks for the timely support but I think all of this is beyond me. I’ve spent 3 days on this now and I seem to be no closer to a resolution. I’ve installed WP-Crontrol but can’t understand how to use it, I’ve read the post about reducing database size but, again, don’t know how to implement it, I’ve tried to implement Nick Greens fix but it didn’t make a difference (I probably put it in the wrong place!). In short, it’s time for me to admit defeat.
    Is there somewhere I can find an expert and pay them to fix this for me?
    Thanks
    Chris

    Mirko P.

    (@rainfallnixfig)

    Hi @windspeed,

    There are freelance developers at Codeable who would be happy to work with you on this:

    https://woocommerce.com/codeable/

    I hope that gets you pointed in the right direction.

    Cheers.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘41,000 Scheduled Actions’ is closed to new replies.