Browser and CDN Caching Headers for Visitors
Sends Cache-Control headers on public pages for logged-out visitors, so a CDN or proxy can cache them for a few minutes.
Snippet Library
3,040 free snippets from the WPIDE team and the community. Copy the code, or add any snippet to your site in one click with WPIDE.
Sends Cache-Control headers on public pages for logged-out visitors, so a CDN or proxy can cache them for a few minutes.
Sends cache headers on RSS feeds and XML sitemaps so feed readers, crawlers and CDNs can reuse them for an hour instead of making WordPress rebuild them on every request.
Adds a wpide_remember() helper that returns a cached value if there is one, or runs your function, stores the result for a set time and returns it, which makes caching slow queries and API calls a one-liner.
Keeps embedded content like videos and social posts cached for 30 days instead of re-fetching it from the provider every day.
Sends a Last-Modified header with each post's update time and answers repeat visits from crawlers and browsers with "304 Not Modified", saving bandwidth and crawl budget.
Adds a single "Clear all caches" toolbar button for administrators that clears whichever cache plugin is active (WP Rocket, LiteSpeed Cache, W3 Total Cache, WP Super Cache, WP Fastest Cache or SG Optimizer) plus the object cache.
Adds a Site Health test that requests your homepage and one of your theme's stylesheets and reports whether text files are compressed (gzip or Brotli) and whether static files get long browser cache lifetimes.
Makes page-cache plugins (WP Rocket, W3 Total Cache, WP Super Cache, LiteSpeed Cache and others that respect DONOTCACHEPAGE) skip caching for visitors who carry a cookie you choose, such as a personalisation, A/B test or affiliate cookie.
Keeps visitors on the homepage they asked for instead of Polylang redirecting them to another language based on their browser, which also avoids caching and SEO surprises.
Sets the update period and time-to-live in your RSS feed, so feed readers check a daily blog once a day instead of every hour.
Adds a Tools > Transients screen listing the cached transients stored in the database with their size and expiry time, and lets administrators delete a single one to force a refresh.
Disables Rank Math's sitemap cache on local, development and staging sites, so sitemap changes show up immediately while you work.
Adds a Tools > Config Constants screen that shows the value of important wp-config.php settings, such as debug mode, memory limits, cron, caching and file editing, without opening the file.