Unlock Special Pricing for a Limited Time – GET 70% OFF NOW!

SpeedyGo
  • Feature
  • Documentation
  • Pricing
  • Blog
  • Support Ticket
  • FAQ
  • Login
It's Free Download Now
Login

Getting Started

  • Requirements & Compatibility
  • Installation
  • First-Time Setup

Caching & Preloading

  • Scheduled Expiration & Auto Purge
  • Cache Warm-Up
  • Cache Preloading
  • Mobile Caching
  • Object Caching
  • Browser Caching
  • Full-Page Caching

Asset Optimization

  • JS Interaction Loader
  • JavaScript Combination
  • CSS Combination
  • JavaScript Minification
  • CSS Minification
  • HTML Minification

Compression

  • Defer Scripts
  • Brotli Compression
  • Gzip Compression

Image Optimization (Pro)

  • Recommended Configuration (Pro Users)
  • Lazy Load
  • WebP Quality Control
  • Conversion Scope Rules
  • Enable WebP Conversion

PageSpeed & Analytics (Pro)

  • Mobile vs Desktop Tracking
  • Google PageSpeed API Integration

System & Developer Tools

  • Clean Uninstallation
  • WP-Cron Monitoring
  • Licensing & Security Checks
  • Admin Bar Purge Action
  • Advanced Cache Rules (.htaccess)

Troubleshooting

  • Purging Cache on UI Glitches
  • WebP Conversion Failing
  • Missing API Key / Connection Error
  • Excluding Broken Files (Minification & Combination Issues)
  • Debugging Compression Warnings
  • System Requirement Issues

Changelog

  • Changelog

Contact & Support

  • Contact & Support
View Categories
  • Home
  • Docs
  • System & Developer Tools
  • Admin Bar Purge Action

Admin Bar Purge Action

SpeedyGo adds a global Purge Cache option directly into the WordPress Admin Bar. This allows instant cache clearing without navigating to the settings page.

27.1 Overview #

With a single click from the top admin bar, administrators can immediately clear all cached files.

  • No need to open plugin settings
  • Instant cache invalidation
  • Available across frontend and backend (for logged-in admins)

Technical Context #

  • Hooks into admin_bar_menu
  • Adds a custom top-level node: Purge Cache
  • Clicking triggers a secure request

The purge process:

  • Verifies nonce for security
  • Calls: speedygo_purge_all_cache()
  • Recursively deletes contents of:
wp-content/uploads/speedygo-cache/
  • Regenerates cache on next page request (or via preloading)

27.2 Security Handling #

  • Nonce verification prevents unauthorized requests
  • Restricted to users with proper capabilities (e.g., administrators)
  • Does not expose filesystem paths publicly

27.3 Best Practice Recommendation #

  • Use after major content or design changes
  • Clear cache after enabling/disabling optimization features
  • Combine with Cache Preloading for seamless regeneration

The Admin Bar Purge Action provides fast, secure, and convenient cache management.

Updated on March 12, 2026

Share This Article :

  • Facebook
  • X
  • LinkedIn
  • Pinterest
Advanced Cache Rules (.htaccess)Licensing & Security Checks
Table of Contents
  • 27.1 Overview
    • Technical Context
  • 27.2 Security Handling
  • 27.3 Best Practice Recommendation
SpeedyGo
  • Support Ticket
  • Feature
  • Documentation
  • Blog
  • FAQ
  • Get SpeedyGo

SpeedyGo is built to make your WordPress site faster, lighter, and easier to manage. From caching to compression, we simplify performance so you can focus on growing your website.

©2026 SpeedyGo. All rights reserved.

  • Privacy Policy
  • Refund Policy
  • Terms and Conditions
  • Privacy Disclosure