# Action Scheduler Optimizer - Fix the WooCommerce Job Queue
Source: https://wpmultitool.com/docs/action-scheduler-optimizer/

so header/footer/nav lists are untouched. */ main :where(div, section, article, aside, details, figure, ul, ol, dl, a):has(> :is(p, li, dd, blockquote, .faq-answer, .prose, .feedback-result, .lead-message)) { container-type: inline-size; } main :where(p, li, dd, blockquote) { font-size: var(--font-size-prose); } /* Exceptions: content-sized flex items. Inline-size containment drops an element's intrinsic width to 0, so a flex child with no basis collapses. The check script (claude-tmp/wp-multitool/dev-browser/type-check.ts) flags any container narrower than 60px - add the class here. */ /* UA \`small\` is font-size: smaller (~0.83em) - inside 14px UI text that is 11.7px (the (EN) mark on /pl/). Hold it at the 14px UI floor. */ small { font-size: max(var(--font-size-2xs), 0.833em); } main .founder-text { container-type: normal; } /* must out-rank the :has() rule (0,0,2) */ main :where(li li, li p, dd p, blockquote p) { font-size: inherit; } /* ---- Type + vertical rhythm ------------------------------------------ The reset above zeroes EVERY margin, so spacing only exists where a rule puts it back by hand. Homepage and Pricing got that by hand; the static content pages never did, which is why they render welded together (the "2. Slow Database Queries" heading had a literal margin-top: 0). These defaults put it back ONCE, globally, so a new page is never born smooshed. The \`* + x\` owl selector only adds margin BETWEEN siblings - an element that OPENS a card or section still sits flush, so existing components keep working without having to unset anything. Paragraphs outside

are 16px; inside

the fluid \`main :where(p, ...)\` rule above wins (this one is zero-specificity). \`body\` stays 1rem so UI chrome that inherits is untouched. */ :where(p) { font-size: var(--font-size-body); } * + p { margin-top: var(--space-md); } /* 1rem */ * + h2 { margin-top: var(--space-2xl); } /* 4rem - major topic break */ * + h3 { margin-top: var(--space-xl); } /* 2rem - numbered sections */ * + h4 { margin-top: var(--space-lg); } /* 1.5rem */ /* A heading owns the thing under it - keep that pair tighter than the gap ABOVE the heading. Same specificity as the rules above, so source order decides: these win. h2 is a big heading (24px+) and 8px blended it into its body, so it gets 16px; the smaller h3/h4 still sit tight at 8px. */ h2 + * { margin-top: var(--space-md); } h3 + *, h4 + * { margin-top: var(--space-sm); } /* Noise overlay */ body::before { content: ""; position: fixed; inset: 0; opacity: 0.03; pointer-events: none; z-index: 9999; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E"); } /* Scanlines */ body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 9998; background: repeating-linear-gradient(0deg, rgba(0,0,0,0.15) 0px, rgba(0,0,0,0.15) 1px, transparent 1px, transparent 2px); opacity: 0.4; } h1, h2, h3 { font-family: var(--font-mono); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; } a { color: var(--accent); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: all var(--transition-med); } a:hover { color: var(--text); text-decoration-color: var(--accent); } a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; } .container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--space-lg); } .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; } /* H3 inside

should inherit summary styling, not block heading defaults. */ summary > h3 { display: inline; font: inherit; font-family: inherit; font-size: inherit; font-weight: inherit; line-height: inherit; letter-spacing: inherit; color: inherit; margin: 0; padding: 0; } /* Body copy line-length cap (50–75ch optimal) - applied to long-form prose only, not hero subhead, not full-width comparison/feature grids. */ .faq-answer, .module-content p { } #features .section-header p, #comparison .section-header p { margin-left: auto; margin-right: auto; } /* Tables shrink to 12-13px at mobile widths across the guide and comparison pages. Give the cells weight there so the smallest text on the site is not also the thinnest. */ @media (max-width: 768px) { td, th { font-weight: 500; } } /* Inline code is sized in em, so it shrinks with whatever it sits inside - nested in small text it reached 10.5px on /autoload-bloat/. Clamp it to the 12px floor and give small text the weight it needs to stay legible. */ code, kbd, samp { font-size: max(0.875rem, 0.875em); font-weight: 500; } @media (prefers-reduced-motion: reduce) { *, *::before, *::after { /* 0s, not the usual 0.01ms. A CSS animation whose start time the engine has not resolved yet is in its PENDING state, and Chrome paints the keyframe's \`from\` value for those frames - a duration of 0.01ms cannot suppress that, because the element is styled before the animation engine gets to it. For the homepage \`typing\` reveal (\`.cache-lie\`) that pending frame is \`max-width: 0\`. Measured on the live homepage at 20x CPU throttle: 5/5 loads painted 2 offset frames with 0.01ms, 0/4 with 0s. The 0.01ms idiom exists so \`animationend\` still fires; nothing in this theme listens for it (no animationend/animationstart/transitionend handler and no getAnimations() call in the frontend), so 0s costs us nothing. Do NOT reach for \`animation: none\` here instead: a \`typing\`-revealed element sits at \`max-width: 0; overflow: hidden\` until the \`forwards\` fill runs, so killing the animation strands it clipped unless (like the homepage \`.cache-lie\`) a reduced-motion rule sets the width directly. \`animation-fill-mode: none\` has the same trap. Duration is the only safe global lever. */ animation-duration: 0s !important; /* Collapsing the DURATION alone is not enough - a surviving delay would still leave the element on its unanimated state for that long before the zero-duration fill snaps it to \`to\` (for the homepage \`typing\` reveal that unanimated state is \`max-width: 0\`, i.e. invisible). Zero the delay too. */ animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; } body::before, body::after { display: none; } } /* ───────────────────────────────────────────────────────────────────── PAGE TITLE - shared H1 intro block for standalone marketing/docs pages ───────────────────────────────────────────────────────────────────── */ .page-intro { padding-block: var(--space-3xl) var(--space-2xl); border-bottom: 1px solid var(--border); } .page-title { font-family: var(--font-mono); font-size: clamp(2rem, 6vw, 3rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.04em; color: var(--text); margin-block-end: var(--space-sm); text-wrap: balance; } /* The \`/ ""\` alt-text form keeps screen readers from reading the slashes. */ .page-title::before { content: "// " / ""; color: var(--accent); } @media (max-width: 768px) { .page-intro { padding-block: var(--space-2xl) var(--space-xl); } } /* Skip link */ .skip-link { font-weight: 500; position: absolute; top: -40px; left: 0; background: var(--accent, #c8ff00); color: var(--black, #0a0a0a); padding: 0.5rem 1rem; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace; font-size: var(--font-size-sm); z-index: 10000; text-decoration: none; } .skip-link:focus { top: 0; } /* Header */ header\[role="banner"\] { position: sticky; top: 0; background: rgba(10, 10, 10, 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border, #2a2a2a); z-index: 100; padding: 1rem 0; } .header-nav { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; } header\[role="banner"\] .logo { font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace; font-weight: 600; font-size: 1rem; /* fixed: outside there is no size container */ color: var(--text, #e8e8e8); text-decoration: none; display: flex; align-items: center; gap: 0.5rem; letter-spacing: -0.02em; } header\[role="banner"\] .logo svg { stroke: var(--accent, #c8ff00); } header\[role="banner"\] .logo-wordmark { display: block; height: 22px; width: auto; } @media (max-width: 880px) { header\[role="banner"\] .logo-wordmark { height: 18px; } } .nav-links { display: flex; align-items: center; gap: 1.5rem; list-style: none; } .nav-links a { font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace; font-size: var(--font-size-sm); font-weight: 500; color: var(--text-muted, #a8a8a8); text-decoration: none; text-transform: uppercase; letter-spacing: 0.05em; transition: color 0.3s ease; } .nav-links a:hover { color: var(--text, #e8e8e8); } /* Current page: light the matching nav link in the accent, and keep it lit on hover. */ .nav-links a\[aria-current="page"\], .nav-links a\[aria-current="page"\]:hover { color: var(--accent, #c8ff00); } .nav-links .btn-primary { display: inline-flex; align-items: center; justify-content: center; padding: 0.5rem 1.5rem; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace; font-size: var(--font-size-sm); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; background: var(--accent, #c8ff00); color: var(--black, #0a0a0a); border: none; cursor: pointer; min-height: 44px; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); } .nav-links .btn-primary:hover { background: var(--text, #e8e8e8); color: var(--black, #0a0a0a); transform: translateY(-1px); } /* Header CTA - filled, and the one dominant action in the nav. It was ghosted originally so the free scan could dominate instead (LP audit gh #3); /scan/ left the nav on 2026-07-24, so "Buy Now" inherits that role. Hover inverts to the outlined treatment. */ .nav-links .btn-secondary { display: inline-flex; align-items: center; justify-content: center; padding: 0.5rem 1.5rem; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace; font-size: var(--font-size-sm); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; background: var(--accent, #c8ff00); color: var(--black, #0a0a0a); border: 1px solid var(--accent, #c8ff00); cursor: pointer; min-height: 44px; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); } .nav-links .btn-secondary:hover { background: transparent; color: var(--accent, #c8ff00); transform: translateY(-1px); } /* Hamburger toggle + mobile CTA: hidden on desktop */ .header-nav .nav-toggle, .header-nav .nav-cta-mobile { display: none; } /* Collapse to logo + Buy Now + hamburger wherever the full nav does not fit on one line: it needs ~830px, overflowed the page at 641-700px and wrapped the header to two rows at 768px. Same 1.5rem gutter as .container so the logo lines up with page content. */ @media (max-width: 880px) { .header-nav { padding-inline: 1.5rem; gap: 0.5rem; flex-wrap: nowrap; } .header-nav .nav-cta-mobile { display: inline-flex; align-items: center; justify-content: center; padding: 10px 14px; min-height: 40px; /* The long-form templates stretch every .btn to 100% below 600px; this one is a .btn too and squeezed the logo onto two lines. */ width: auto; max-width: none; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace; font-size: var(--font-size-sm); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; text-decoration: none; background: var(--accent, #c8ff00); color: var(--black, #0a0a0a); border: none; margin-left: auto; } /* Ghost variant of the mobile CTA (LP audit gh #3 - demote "Buy Now"). */ .header-nav .nav-cta-mobile.btn-secondary { background: transparent; color: var(--accent, #c8ff00); border: 1px solid var(--accent, #c8ff00); } .header-nav .nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 4px; width: 44px; height: 44px; padding: 0; background: transparent; border: 1px solid var(--border, #2a2a2a); cursor: pointer; } .nav-toggle-bar { display: block; width: 20px; height: 2px; margin: 0 auto; background: var(--text, #e8e8e8); transition: transform 0.2s ease, opacity 0.2s ease; } .nav-toggle\[aria-expanded="true"\] .nav-toggle-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); } .nav-toggle\[aria-expanded="true"\] .nav-toggle-bar:nth-child(2) { opacity: 0; } .nav-toggle\[aria-expanded="true"\] .nav-toggle-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); } .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem 1rem 1rem; background: rgba(10, 10, 10, 0.97); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border, #2a2a2a); } .nav-links.is-open { display: flex; } .nav-links li { width: 100%; } .nav-links a { display: flex; align-items: center; width: 100%; min-height: 44px; padding: 14px 8px; font-size: var(--font-size-md); border-bottom: 1px solid var(--border, #2a2a2a); } .nav-links li:last-child a { border-bottom: none; } /* Hide the duplicate Buy Now inside the drawer on mobile */ .nav-cta-desktop-item { display: none; } header\[role="banner"\] { position: sticky; } } /* ───────────────────────────────────────────────────────────────────── DOCS SHARED STYLES ───────────────────────────────────────────────────────────────────── */ /* Anchor scroll offset for sticky header */ /* The sticky header is ~77px tall, so anything linked by fragment has to clear it. Section headings already did; the per-step ids and the skip-link target did not, which put a deep link from the HowTo schema behind the header. */ main section\[id\], main .steps-list li\[id\], #main { scroll-margin-top: 5rem; } /* Page Header - wrapper and h1 live in page-title-styles.php (.page-intro/.page-title) */ .page-header p { color: var(--text-muted); font-size: var(--font-size-lg); } /* Doc Header (module pages) - composite header (breadcrumb, badges, H1, doc-nav), so it keeps its own tighter bottom spacing instead of .page-intro's. The H1 itself is the shared .page-title (page-title-styles.php). */ .doc-header { padding: var(--space-3xl) 0 var(--space-xl); border-bottom: 1px solid var(--border); } .doc-header .one-liner { color: var(--text-muted); font-size: var(--font-size-xl); } /* Doc Badges */ .doc-badges { display: flex; gap: var(--space-sm); margin-bottom: var(--space-md); } .badge { display: inline-block; padding: 2px 8px; font-family: var(--font-mono); font-size: var(--font-size-2xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; border: 1px solid var(--border); } .badge-optimization { background: #1e3a8a; color: #93c5fd; border-color: #2563eb; } .badge-control { background: #4c1d95; color: #d8b4fe; border-color: #7c3aed; } .badge-lite { background: var(--surface); color: var(--text-dim); border-color: var(--border); } .badge-pro { background: var(--accent); color: var(--black); border-color: var(--accent); } /* Entries that apply to every install. */ .badge-all { background: var(--surface); color: var(--accent); border-color: var(--accent); } .badge-guide { background: #134e4a; color: #99f6e4; border-color: #0d9488; } /* Jumpstart: a standalone product, so its docs badge keeps the accent without borrowing the Pro edition's meaning. */ .badge-jumpstart { background: var(--accent); color: var(--black); border-color: var(--accent); } /* Documentation screenshots */ .doc-shot { margin: var(--space-md) 0 var(--space-sm); } .doc-shot a { display: block; line-height: 0; } /* Screenshots scale down to ~260px on a phone, where a wp-admin capture is unreadable. The link to the full-size file needs a cue that survives touch, so this is always visible rather than hover-only. */ .doc-shot a.doc-shot-zoom { position: relative; /* Shrink-wrap the image so the cue sits on it, not far off to the right when the screenshot is narrower than the column. */ display: inline-block; max-width: 100%; } .doc-shot-cue { position: absolute; top: 0; right: 0; padding: 4px 8px; background: var(--black); color: var(--accent); border: 1px solid var(--accent); font-family: var(--font-mono); font-size: var(--font-size-2xs); font-weight: 700; line-height: 1.4; text-transform: uppercase; letter-spacing: 0.05em; } .doc-shot img { display: block; max-width: 100%; height: auto; border: 1px solid var(--border); background: var(--surface); transition: border-color 0.2s; } .doc-shot a:hover img, .doc-shot a:focus-visible img { border-color: var(--accent); } .doc-shot figcaption { margin-top: var(--space-xs, 0.5rem); font-family: var(--font-mono); font-size: var(--font-size-2xs); color: var(--text-dim); } /* On-page Nav */ .doc-nav { display: flex; gap: var(--space-md); margin-top: var(--space-lg); padding-top: var(--space-md); border-top: 1px solid var(--border); overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; } .doc-nav::-webkit-scrollbar { display: none; } .doc-nav a { font-family: var(--font-mono); font-size: var(--font-size-xs); color: var(--text-muted); text-decoration: none; text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap; padding: var(--space-xs) 0; transition: color var(--transition-med); } .doc-nav a:hover { color: var(--accent); } /* Main Content */ main { padding: var(--space-2xl) 0 var(--space-3xl); } main section { margin-bottom: var(--space-2xl); } main h2 { font-family: var(--font-mono); font-size: var(--font-size-2xl); font-weight: 600; margin-bottom: var(--space-lg); color: var(--text); } main h2::before { content: "$ "; color: var(--accent); } main p { color: var(--text-muted); line-height: 1.7; } /* Module Grid (hub page) */ .module-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-md); } .module-card { display: block; background: var(--surface); border: 1px solid var(--border); padding: var(--space-lg); text-decoration: none; transition: border-color var(--transition-med), transform var(--transition-fast); } .module-card:hover { border-color: var(--accent); transform: translateY(-2px); } .module-card-header { display: flex; align-items: center; gap: var(--space-sm); margin-bottom: var(--space-md); } .module-card h3 { font-family: var(--font-mono); font-size: var(--font-size-body); font-weight: 600; color: var(--text); margin-bottom: var(--space-xs); } .module-card-header h3 { margin: 0; } .module-card p { font-size: var(--font-size-prose); font-weight: 500; color: var(--text-muted); line-height: 1.5; margin: 0; } /* Getting Started / Steps List */ .getting-started ol, .steps-list { list-style: none; counter-reset: step; padding: 0; margin: 0; } .getting-started ol li, .steps-list li { counter-increment: step; padding: var(--space-md) 0 var(--space-md) var(--space-2xl); border-bottom: 1px solid var(--border); position: relative; font-size: var(--font-size-prose); color: var(--text-muted); } .getting-started ol li:last-child, .steps-list li:last-child { border-bottom: none; } .getting-started ol li::before, .steps-list li::before { content: counter(step); position: absolute; left: 0; top: var(--space-md); font-family: var(--font-mono); font-size: var(--font-size-md); font-weight: 700; color: var(--accent); width: 1.5rem; height: 1.5rem; display: grid; place-items: center; border: 1px solid var(--accent); } .steps-list li strong { display: block; font-family: var(--font-mono); font-size: var(--font-size-md); color: var(--text); margin-bottom: var(--space-xs); } .steps-list li p { margin: 0; font-size: var(--font-size-prose); } .steps-list li p + p, .faq-item p + p { margin-block-start: var(--space-sm); } /* Paths and filenames marked with \`backticks\` in docs-data. Long paths must wrap on a phone instead of pushing the page sideways. */ #main p code { font-family: var(--font-mono); font-size: 0.9em; background: var(--surface-elevated); padding: 1px 5px; color: var(--text); overflow-wrap: anywhere; } /* Jump links under the intro of a task guide. */ .doc-quick-links { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-sm) var(--space-lg); padding: 0; margin: var(--space-md) 0 0; font-family: var(--font-mono); font-size: var(--font-size-md); } .doc-quick-links a { display: inline-block; padding-block: 0.5rem; color: var(--accent); } .doc-quick-links a::before { content: "\\2192\\00a0"; } /* Feature List */ .feature-list { list-style: none; padding: 0; margin: 0; } .feature-list li { padding: var(--space-sm) 0; padding-left: var(--space-lg); border-bottom: 1px solid var(--border); font-size: var(--font-size-prose); color: var(--text-muted); position: relative; } .feature-list li:last-child { border-bottom: none; } .feature-list li::before { content: ""; position: absolute; left: 0; top: 0.75rem; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); } /* Settings Table */ .settings-table { width: 100%; border-collapse: collapse; font-size: var(--font-size-md); } .settings-table th { font-family: var(--font-mono); font-size: var(--font-size-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-dim); text-align: left; padding: var(--space-sm) var(--space-md); border-bottom: 2px solid var(--border); } .settings-table td { padding: var(--space-sm) var(--space-md); border-bottom: 1px solid var(--border); color: var(--text-muted); /* Setting descriptions name filters and constants - single unbreakable tokens that push the table, and the whole page, sideways on a phone. */ overflow-wrap: anywhere; } .settings-table code { font-family: var(--font-mono); font-size: var(--font-size-sm); background: var(--surface-elevated); padding: 1px 5px; color: var(--accent); } /* FAQ Items */ .faq-item { border-bottom: 1px solid var(--border); } .faq-item summary { font-family: var(--font-mono); font-size: var(--font-size-body); font-weight: 600; color: var(--text); padding: var(--space-md) 0; cursor: pointer; list-style: none; position: relative; padding-right: var(--space-xl); } .faq-item summary::-webkit-details-marker { display: none; } /* The accordions and the on-page nav are keyboard targets, so give them the site's own focus ring instead of leaving them on the browser default. */ .faq-item summary:focus-visible, .doc-nav a:focus-visible, .doc-shot-zoom:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; } .faq-item summary::after { content: "+"; position: absolute; right: 0; top: var(--space-md); font-family: var(--font-mono); font-size: var(--font-size-lg); color: var(--accent); transition: transform var(--transition-fast); } .faq-item\[open\] summary::after { content: "−"; } .faq-item p { padding: 0 0 var(--space-md); font-size: var(--font-size-prose); color: var(--text-muted); line-height: 1.7; /* Answers quote CLI commands and filesystem paths, which are single unbreakable tokens - without this they push the whole page sideways on a phone. */ overflow-wrap: anywhere; } /* Related Grid */ .related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-md); } /* Video Section */ .video-section { margin-bottom: var(--space-2xl); } .video-facade { position: relative; aspect-ratio: 16/9; border: 1px solid var(--border); border-radius: 2px; overflow: hidden; cursor: pointer; max-width: 900px; margin: var(--space-lg) auto; background: var(--black); } .video-facade img { width: 100%; height: 100%; object-fit: cover; } .video-facade__play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(10,10,10,0.5); border: none; cursor: pointer; transition: background var(--transition-fast); } .video-facade:hover .video-facade__play { background: rgba(10,10,10,0.3); } .video-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; } .video-more { text-align: center; margin-top: var(--space-md); } .video-more a { font-family: var(--font-mono); font-size: var(--font-size-sm); font-weight: 500; } /* CTA Section */ .cta-section { margin-top: var(--space-3xl); padding: var(--space-2xl); background: var(--surface); border: 1px solid var(--border); text-align: center; } .cta-section h2 { font-family: var(--font-mono); font-size: var(--font-size-2xl); color: var(--text); margin-bottom: var(--space-sm); } .cta-section h2::before { content: none; } .cta-section p { color: var(--text-muted); margin-bottom: var(--space-xl); margin-left: auto; margin-right: auto; } /* Responsive */ @media (max-width: 768px) { .doc-header { padding: var(--space-2xl) 0 var(--space-lg); } main { padding: var(--space-xl) 0 var(--space-2xl); } .module-grid { grid-template-columns: 1fr; } .related-grid { grid-template-columns: 1fr; } .doc-nav { gap: var(--space-sm); } .settings-table { font-size: var(--font-size-sm); } .settings-table th, .settings-table td { padding: var(--space-xs) var(--space-sm); } /* Phones: give step text the width back and read it at body size. */ .getting-started ol li, .steps-list li { padding-inline-start: 2.25rem; } .steps-list li p { font-size: var(--font-size-prose); line-height: 1.7; } .doc-nav a { padding-block: 0.75rem; } } /* 44px tap target for the page's one call to action. */ .cta-section .btn-primary { min-height: 44px; display: inline-flex; align-items: center; } /* Footer - organized column grid (Concept A) */ footer { background: var(--black); border-top: 1px solid var(--border); padding: var(--space-3xl) 0 var(--space-xl); font-size: var(--font-size-md); color: var(--text-muted); } .footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: var(--space-2xl) var(--space-xl); align-items: start; } /* Brand column */ .footer-logo { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-mono); font-weight: 600; letter-spacing: 0.03em; font-size: var(--font-size-lg); color: var(--text); text-decoration: none; margin-bottom: var(--space-md); } .footer-logo svg { flex-shrink: 0; } .footer-logo .logo-wordmark { display: block; height: 22px; width: auto; } .footer-brand p { font-weight: 500; color: var(--text-muted); font-size: 1rem; /* fixed: no size container outside , fluid would hit the 21px cap */ max-width: 34ch; line-height: 1.6; margin-bottom: var(--space-lg); } .footer-social { display: flex; gap: var(--space-md); margin-bottom: var(--space-lg); } .footer-social a { font-weight: 500; color: var(--text-muted); display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; border: 1px solid var(--border); transition: color var(--transition-med), border-color var(--transition-med), transform var(--transition-fast); } .footer-social a:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); } .footer-social a:focus-visible { color: var(--accent); outline: 2px solid var(--accent); outline-offset: 2px; } .footer-brand .trustpilot-widget { max-width: 260px; } /* Link columns */ .footer-col h3 { font-family: var(--font-mono); font-size: var(--font-size-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); margin-bottom: var(--space-md); padding-bottom: var(--space-sm); border-bottom: 1px solid var(--border); } .footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; padding: 0; margin: 0; } footer a { font-family: var(--font-mono); font-size: var(--font-size-sm); color: var(--text-muted); text-decoration: none; text-transform: uppercase; letter-spacing: 0.05em; transition: color var(--transition-med); } footer a:hover { color: var(--accent); } /* Long compound link labels (e.g. the de refund-policy word) must wrap or they overflow the page at 320px. */ .footer-col li { overflow-wrap: anywhere; -webkit-hyphens: auto; hyphens: auto; } .footer-col a { display: inline-block; font-weight: 500; } .footer-col a:focus-visible { color: var(--accent); outline: none; text-decoration: underline; text-underline-offset: 3px; } /* Badge marquee */ .badge-marquee { overflow: hidden; margin: var(--space-2xl) 0 var(--space-lg); mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent); -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent); } .badge-marquee-track { display: flex; gap: var(--space-xl); width: max-content; animation: marquee 40s linear infinite; } .badge-marquee:hover .badge-marquee-track { animation-play-state: paused; } .badge-marquee-track a { display: flex; align-items: center; flex-shrink: 0; opacity: 0.6; transition: opacity var(--transition-med); } .badge-marquee-track a:hover { opacity: 1; } .badge-marquee-track img { display: block; height: 34px; width: auto; } /* For directories that only publish black-on-transparent artwork, which would otherwise be invisible against this footer. Opt-in per badge - never blanket, because inverting a badge that already reads correctly wrecks its colours. */ .badge-marquee-track img.badge--invert { filter: invert(1); } /* A badge that ships with a companion text link under it (Launch Llama). */ .badge-marquee-track .badge-stack { display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; } /* Text, unlike the badge images, must stay readable: full opacity (the 0.6 above composited #888 down to #565656, 2.69:1) and a 24px tap target. */ .badge-marquee-track a.badge-companion { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; opacity: 1; font-family: var(--font-mono); font-size: var(--font-size-2xs); font-weight: 500; line-height: 1; color: var(--text-dim); text-decoration: none; } .badge-marquee-track a.badge-companion:hover, .badge-marquee-track a.badge-companion:focus-visible { color: var(--accent); } @keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } } /* Bottom bar */ .footer-bottom p, .footer-bottom span { font-weight: 500; } .footer-bottom { font-weight: 500; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--space-md); border-top: 1px solid var(--border); padding-top: var(--space-lg); margin-top: var(--space-md); } footer p { font-family: var(--font-mono); font-size: var(--font-size-xs); color: var(--text-muted); letter-spacing: 0.02em; margin: 0; } /* The built-by row groups the outbound author links so space-between on .footer-bottom keeps them adjacent instead of spreading them apart. */ .footer-built-by { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); } .built-by-badge { font-weight: 500; display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px; font-family: var(--font-mono); font-size: var(--font-size-xs); color: var(--text-dim); text-decoration: none; text-transform: uppercase; letter-spacing: 0.05em; transition: color var(--transition-med); } .built-by-badge:hover { color: var(--accent); } .built-by-badge svg { opacity: 0.7; transition: opacity var(--transition-med); } .built-by-badge:hover svg { opacity: 1; } @media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } } @media (max-width: 560px) { .footer-bottom { flex-direction: column; align-items: flex-start; } } .btn-primary { display: inline-block; background: var(--accent); color: var(--black); padding: var(--space-sm) var(--space-xl); font-family: var(--font-mono); font-size: var(--font-size-md); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; text-decoration: none; transition: transform 0.2s, box-shadow 0.2s; } .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 30px rgba(200, 255, 0, 0.3); } .doc-breadcrumb { margin-bottom: var(--space-sm, 0.75rem); font-size: var(--font-size-md); } .doc-breadcrumb a { color: var(--text-muted, #888); text-decoration: none; } .doc-breadcrumb a:hover { color: var(--accent, #c8ff00); } Skip to main content OPTIMIZATION LITE Action Scheduler Optimizer Health dashboard, automatic cleanup, and runner tuning for Action Scheduler - the WooCommerce job queue whose tables grow to gigabytes unnoticed. What It Does Action Scheduler is the background job queue used by WooCommerce and many other plugins. Left alone, its tables (actionscheduler_actions and actionscheduler_logs) accumulate millions of completed and failed rows that slow down the admin, cron, and the database. This module gives you an A–F health grade with the factors behind it, batched cleanup by status (completed, failed, canceled, logs, orphaned logs), a scheduled auto-cleanup with per-status retention windows, one-click fixes for stuck and past-due actions, and a tuner that adjusts Action Scheduler's runner behavior using Action Scheduler's official filter hooks - no core hacks. Features A–F health grade based on table size, row counts, stuck actions, past-due actions, and failure rate - with the specific factors listed Live dashboard: table sizes, status counts (pending / in-progress / complete / failed / canceled), processing rate per hour, failed actions in the last 24h, and oldest pending action Top hooks table showing which plugins create the most actions, broken down by status Recommendations with one-click actions: "Unstick" releases actions claimed but abandoned for over 10 minutes, "Run Queue Now" processes past-due pending actions immediately Cleanup by type: completed, failed, and canceled actions plus log entries, each respecting its own retention window Orphaned log cleanup - removes log rows whose parent action no longer exists All deletes run in batches of 1,000 rows with LIMIT, so cleanup never locks large tables Nuclear clean: wipe all non-active actions and all logs at once - guarded by a typed "NUCLEAR" confirmation Automatic scheduled cleanup via WP-Cron (hourly, every 6 hours, every 12 hours, or daily) with per-status retention: completed 1 day, failed 3 days, canceled disabled, logs 3 days by default (0 disables a category, 31-day cap) Weekly automatic OPTIMIZE TABLE on all four Action Scheduler tables, plus on-demand optimization Runner tuner using Action Scheduler's own filters: retention period, cleanup batch size, include-failed-in-cleanup, runner batch size, time limit, concurrent batches, async runner on/off, logging on/off (NullLogger), and claim lock duration Tuner shows Action Scheduler's original defaults next to your values, so you always know what you changed Detects when Action Scheduler is not installed and says so instead of showing empty stats How to Use **Open the dashboard** Go to WP Multitool > Action Scheduler. The dashboard loads your health grade, table stats, status counts, top hooks, and recommendations. **Read the health grade** A or B means the queue is healthy. C, D, or F point to oversized tables, stuck actions, or past-due backlogs - the listed factors tell you exactly which. **Handle stuck and past-due actions first** If recommendations show stuck actions, click "Unstick" to release them. If pending actions are past due, click "Run Queue Now" - and check that WP-Cron or a system cron is actually firing. **Clean up the backlog** Use the per-type cleanup buttons to purge old completed, failed, and canceled actions and logs. Deletes are batched, so even million-row tables clean safely. **Enable auto-cleanup** Turn on scheduled auto-cleanup so the tables stay small. The defaults (completed after 1 day, failed after 3, logs after 3) suit most shops; adjust the retention windows if you need longer history. **Tune the runner if needed** On high-volume shops, raise the runner batch size or concurrent batches so the queue drains faster. Changes apply through Action Scheduler's official filters on the next page load. Settings SettingDefaultDescription Auto-cleanup `On, every 6 hours` Scheduled cleanup via WP-Cron. Schedule options: hourly, every 6 hours, every 12 hours, daily. Retention: completed `1 day` Completed actions older than this are purged. 0 disables this category; maximum 31 days. Retention: failed `3 days` Failed actions older than this are purged. 0 disables; maximum 31 days. Retention: canceled `0 (disabled)` Canceled actions are kept by default. Set a day count to purge them too. Retention: logs `3 days` Log entries older than this are purged. 0 disables; maximum 31 days. Weekly table optimization `On` Runs OPTIMIZE TABLE on the four Action Scheduler tables once a week to reclaim disk space. Runner batch size `25` Actions processed per runner batch (5–200). Raise on high-volume shops with server headroom. Runner time limit `30s` Maximum seconds per queue-runner pass (5–120). Concurrent batches `1` Parallel queue runners (1–10). More drains the queue faster but increases server load. Disable logging `Off` Switches Action Scheduler to a null logger - stops log table growth entirely, at the cost of losing job history. FAQ Is it safe to delete completed and failed actions? Yes. Completed, failed, and canceled actions are historical records of jobs that already ran (or definitively did not) - they are not pending work. Pending and in-progress actions are never touched by any cleanup in this module. What does "Nuclear clean" delete exactly? All complete, failed, and canceled actions plus all log entries - regardless of age. Pending and in-progress actions survive. It requires typing NUCLEAR to confirm. Use it when the tables are so large that retention-based cleanup would take too long. How is this different from the Action Scheduler cleanup in Database Optimizer? Database Optimizer includes a basic one-shot purge of completed/failed entries as part of general database cleanup. This module is the full toolset: health grading, per-status retention schedules, stuck-action recovery, queue triggering, and runner tuning. I don't run WooCommerce - is this module useful? Only if another plugin bundles Action Scheduler (many do: WP Mail SMTP, Yoast, various backup and marketing plugins). If Action Scheduler is not installed at all, the module simply reports that and does nothing. Why are my pending actions past due? Usually because WP-Cron is not firing reliably (low-traffic site, DISABLE_WP_CRON set without a system cron, or a stuck queue claim). Click "Run Queue Now" to drain the backlog immediately, then click "Unstick" if actions are stuck in claims, and set up a real system cron for a permanent fix. Does the tuner modify Action Scheduler files? No. Every tuning option is applied through Action Scheduler's own public filter hooks (action_scheduler_queue_runner_batch_size, action_scheduler_retention_period, and so on). Disable the module and the defaults return. Related Modules [LITE Database Optimizer Clean up post revisions, expired transients, orphaned metadata, stale cron events, and Action Scheduler logs - with a SQL backup of the deleted rows written first, or nothing is deleted.](https://wpmultitool.com/docs/database-optimizer/) [PRO Slow Query Analyzer Automatically detects slow database queries, runs MySQL EXPLAIN analysis, and suggests specific index fixes - all locally, with no external API calls.](https://wpmultitool.com/docs/slow-query-analyzer/) [LITE System Info A Site Health dashboard: status pills for PHP, memory, database size, autoload, transients, cron, and caching - plus prioritized recommendations that link the module that fixes each issue.](https://wpmultitool.com/docs/system-info/) Ready to optimize your WordPress site? Join developers using WP Multitool to debug, optimize, and maintain WordPress. [Get WP Multitool](https://wpmultitool.com/pricing/)