Adjust performance and caching settings with the AI Agent for WordPress
-
- What this tutorial covers
- Before you start: when this tutorial won’t work
- How the AI Agent for WordPress controls performance settings
- Ask the agent to explain a setting before changing it
- Run a conversational performance audit
- Toggle caching: NGINX direct delivery, dynamic cache, and Memcached
- Adjust image optimization, lazy loading, and minification
- Common mistakes and how to avoid them
- Frequently asked questions
Configure SiteGround Speed Optimizer caching, image optimization, and minification by chatting with the AI Agent for WordPress in plain English, with no menu hunting required.
The AI Agent for WordPress runs inside SiteGround AI Studio and reaches into your WordPress site through the AI Agent by SiteGround plugin. You ask for a change in plain English, such as “turn on lazy loading,” “flush my cache,” or “enable Memcached,” and the agent applies it directly inside WordPress or Site Tools. This tutorial covers how to audit, explain, and toggle every major performance setting through chat, including the safety pattern that keeps you from breaking a live site mid-conversation.
What this tutorial covers
- Asking the agent to explain any speed setting before you toggle it, so you know what changes before they happen.
- Running a conversational performance audit that surfaces the highest-impact bottlenecks in two or three prompts.
- Toggling NGINX direct delivery, dynamic cache, and Memcached object caching through conversation rather than Site Tools menus.
- Adjusting image optimization, CSS/JS minification, and lazy loading with a single sentence per change.
- Recovering safely when a change hurts performance instead of helping it.
Before you start: when this tutorial won’t work
The AI Agent for WordPress controls performance settings on any WordPress site that’s connected to SiteGround AI Studio through the AI Agent by SiteGround plugin. Without that connection, the prompts below return generic advice instead of applying changes to your site.
You need:
- Access to SiteGround AI Studio with the AI Agent for WordPress available.
- The AI Agent by SiteGround plugin installed and activated on your WordPress site, with the site connected to AI Studio.
- The SiteGround Speed Optimizer plugin installed and activated. The agent uses the Speed Optimizer to apply most of the performance changes in this tutorial.
- An administrator-level WordPress account so the agent can apply plugin-level changes on your behalf.
How the AI Agent for WordPress controls performance settings
The agent runs in SiteGround AI Studio and reaches your WordPress site through the AI Agent by SiteGround plugin. Every plain-English request maps to a specific setting in Speed Optimizer or Site Tools, and the agent applies the change with administrator-level access. There is no separate “performance mode.” The same chat interface that handles content, security, and plugin tasks also handles speed.
Three layers are in scope:
- Server caches in Site Tools. NGINX direct delivery, dynamic cache, and Memcached object cache run on SiteGround’s infrastructure and apply before WordPress even loads.
- Speed Optimizer plugin settings. Image optimization, CSS/JS combination and minification, lazy loading, font preloading, and HTML compression run inside WordPress.
- Diagnostic actions. Flushing caches, purging the CDN, scanning the front page for render-blocking resources, and checking which optimizations are currently active.
The agent confirms destructive changes in chat before executing them. If you ask it to “disable all caching,” it summarizes what that means for your site and asks you to confirm. It does not silently flip switches that could affect live traffic.
Ask the agent to explain a setting before changing it
The fastest way to avoid breaking a live site is to ask the agent to explain a setting before you tell it to change anything. Treat the agent as a senior engineer who already knows your site’s configuration. Ask “what does this do on my site specifically?” rather than the generic “what is dynamic cache?”
Example prompts that work well
- “Explain what dynamic cache does on my site and which pages it affects. Don’t change anything yet.”
- “What’s the difference between NGINX direct delivery and dynamic cache for my homepage?”
- “If I turn on Memcached object caching, what could go wrong? Walk me through the worst case.”
- “List every Speed Optimizer setting that is currently disabled, and tell me why I might want each one on.”
The “don’t change anything yet” closer matters. Without it, the agent may interpret an explanatory question as authorization to make a change. Asking “should I enable lazy loading?” can lead the agent to enable lazy loading after explaining it. Adding “explain only” or “don’t change anything yet” keeps the conversation in read-only mode.
Run a conversational performance audit
Before you toggle anything, run an audit. Instead of opening Google PageSpeed Insights and reading through 30 recommendations, you can ask the agent to surface the three to five highest-impact issues for your specific site in one prompt. This is the pattern that produces the most useful results:
- Frame the audit narrowly. “Audit my homepage for Core Web Vitals issues” beats “tell me how to make my site faster.”
- Ask for ranked output. “List the top 3 bottlenecks ranked by estimated impact on LCP, in order.”
- Force specificity. “For each one, tell me the exact Speed Optimizer setting or Site Tools toggle that fixes it.”
- Decide before delegating. Review the list, then ask the agent to apply only the changes you’ve approved. Never use “fix everything you found.”
A complete audit prompt looks like this:
“Audit my homepage for Core Web Vitals issues. List the top 3 bottlenecks ranked by estimated impact on LCP. For each one, tell me the exact Speed Optimizer or Site Tools setting that addresses it, and rate each fix as low, medium, or high risk. Don’t apply anything yet.”
The closing “Don’t apply anything yet” keeps the audit in read-only mode. You get a diagnostic report without simultaneous changes, then choose which fixes to authorize next.
Toggle caching: NGINX direct delivery, dynamic cache, and Memcached
With audit results in hand, server-level caching is usually the highest-impact first move. SiteGround runs three independent caching layers, and the agent can enable, disable, or flush each one through chat. Knowing what each layer does is the difference between a 30% speed improvement and a broken checkout page.
| Layer | What it caches | When to enable | When to disable |
| NGINX direct delivery | Static files (images, CSS, JS, fonts) | Always; almost no downside | Never, except for niche file-serving conflicts |
| Dynamic cache | Full HTML output of WordPress pages | Marketing sites, blogs, mostly-static pages | WooCommerce cart and checkout, members-only pages, real-time dashboards |
| Memcached | WordPress objects: queries, options, transients | Sites with heavy database queries (large WooCommerce stores, membership sites) | Very small sites where the overhead exceeds the benefit |
Example prompts for caching toggles
- “Enable NGINX direct delivery for my site.”
- “Turn on dynamic cache for everything except /cart and /checkout.” (excludes WooCommerce-critical paths)
- “Enable Memcached object caching and tell me how to verify it’s working.”
- “Flush all caches and confirm when each layer is cleared.”
- “Show me which pages are currently cached and which are bypassing the cache.”
For WooCommerce or membership sites, always pair a “turn on dynamic cache” prompt with an exclusion list. The agent will set per-URL exclusions in Speed Optimizer rather than disabling caching globally, which is a common mistake that leaves the rest of the site uncached for no reason.
What to do if a cache change breaks something
If pages start showing stale content, logged-out users see other users’ carts, or admin bar elements look frozen, ask the agent: “Flush all caches and disable dynamic cache temporarily.” That’s the safe rollback. Then debug with: “Show me which URL exclusions are active for dynamic cache and tell me which ones I’m missing.”
Adjust image optimization, lazy loading, and minification
Server caches speed up delivery. Speed Optimizer controls what gets delivered. The plugin handles three categories of front-end optimization that have outsized impact on Core Web Vitals scores: image handling, CSS/JS delivery, and lazy loading. The agent can toggle each one and explain the tradeoff in the same conversation.
Image optimization
Speed Optimizer offers Lossless, Optimized (the default and recommended), and Aggressive compression modes, plus WebP conversion for compatible browsers.
Useful prompts:
- “Enable WebP conversion for all images and tell me how much storage it will save.”
- “Switch image compression from Lossless to Optimized and re-optimize the existing media library in the background.”
- “Find the 10 largest images on my homepage and tell me their current and post-optimization sizes.”
Lazy loading
Lazy loading defers off-screen images, iframes, and videos until the user scrolls toward them. Enabling it almost always improves Largest Contentful Paint (LCP) on long pages. It can hurt LCP on short, image-heavy pages where the largest element is above the fold.
Useful prompts:
- “Enable lazy loading for images and iframes, but exclude the homepage hero image.”
- “Check whether my homepage’s largest image loads above the fold, and recommend whether to lazy-load it.”
CSS/JS minification and combination
Minification strips whitespace and comments from CSS and JS files. Combination merges multiple files into one. Minification is almost always safe. Combination breaks more sites than any other Speed Optimizer setting because it can introduce JavaScript ordering bugs.
Useful prompts:
- “Minify CSS and JS but do not combine files. Run a front-page test after applying.”
- “Try combining CSS files only. If anything looks broken on the homepage or product pages, roll it back.”
Common mistakes and how to avoid them
Saying “fix everything” without scope
Open-ended optimization prompts like “make my site as fast as possible” often trigger the safest possible defaults rather than aggressive optimization, because the agent has no signal about your risk tolerance. Always specify which area you want to optimize: homepage, product pages, admin dashboard, or a specific URL pattern.
Skipping the explanation step on a live site
Asking “turn on combine CSS” without first asking “what’s the risk of turning on combine CSS for my theme?” is how front-end bugs reach production. The minute spent on the explanation prompt is the cheapest insurance you will buy all week.
Forgetting WooCommerce exclusions
Dynamic cache without exclusions breaks WooCommerce carts, checkouts, and account pages. Always pair “enable dynamic cache” with an explicit exclusion list, or ask the agent to apply WooCommerce-aware defaults: “Enable dynamic cache with WooCommerce exclusions.”
Ignoring the agent’s risk ratings
When the agent rates a change as “medium” or “high” risk, it is flagging that this specific setting on this specific site has a meaningful chance of breaking something. Do not override risk ratings without first running the change on a staging site.
Frequently asked questions
How do I know which caching settings to enable?
Most WordPress sites should enable NGINX direct delivery, dynamic cache (with WooCommerce or membership exclusions if applicable), and Memcached. The agent can audit your site and recommend the right combination in one prompt: “Recommend the optimal caching configuration for my site type.” Static blogs and marketing sites benefit most from dynamic cache. WooCommerce stores benefit most from Memcached and aggressive image optimization.
Can the AI Agent for WordPress break my site by changing caching settings?
The agent can technically apply settings that break specific functionality. Dynamic cache without WooCommerce exclusions can cause cart issues, and CSS/JS combination can break themes with strict file-load ordering. The agent confirms destructive changes in chat before applying them and flags risky operations with risk ratings, but it cannot guarantee zero breakage across every theme and plugin combination. Always test medium- or high-risk changes on staging first.
Does the AI Agent for WordPress work with caching plugins other than SiteGround Speed Optimizer?
The agent is built around the SiteGround Speed Optimizer plugin and SiteGround’s server-level caches. It can answer general questions about third-party plugins like WP Rocket or W3 Total Cache, but it cannot toggle their settings on your behalf. If you want conversational control of performance settings, the supported path is Speed Optimizer plus the agent.
How do I undo a change the agent made?
Ask the agent: “What was the last performance setting you changed, and how do I revert it?” The agent should report the most recent change and the rollback prompt. If a change broke something obvious, the universal safe rollback is: “Flush all caches and disable dynamic cache temporarily.” That returns the site to an uncached but functioning state while you debug.