Black Friday 40% off yearly and lifetime plans · 18d left Ends in 18d09h22m Claim 40% off
Performance48 docs

How to Disable CDN for Admin Users in WordPress

Disable CDN rewriting for logged-in admin users in Classic Monks. Ensures admins see the latest content without CDN caching.

By Founder & Lead Developer

Last updated

1 minute

Key takeaways

  • Single toggle, no nested options
  • Quick WordPress optimization with one click
  • Does not affect core WordPress functionality
  • Reversible (disable to restore default behavior)

Why You Need It

CDN caching can cause admins to see stale content. Disabling CDN for admins ensures they always see the latest version of the site.

How to Enable this Feature

  1. Step 1

    Navigate to Settings

    Click into the Classic Monks plugin settings, then the Performance tab, CDN subtab.

  2. Step 2

    Enable the Feature

    Toggle on the feature.

    CDN Enabler settings configuration

  3. Step 3

    Save and Test

    Click Save Changes. Test on the frontend.

Common Use Cases

Content updates

When updating content, admins need to see the latest version immediately, not a cached version.

Debugging

When debugging CDN issues, disabling CDN for admins helps isolate the problem.

Before you enable this feature

  1. Test on staging first to verify no conflicts with your theme or other plugins
  2. Check dependent plugins that may rely on the functionality being modified
  3. Monitor after enabling for any unexpected behavior on the frontend

How it works under the feature

This feature runs during the WordPress initialization phase. When enabled, its PHP code registers hooks that modify specific WordPress behaviors. The changes are non-destructive and reversible.

No database schema changes are made. The feature state is stored as a boolean value in the wp_options table and can be toggled at any time from the admin settings.

Troubleshooting

2 problems and how to fix each one.

The feature is not taking effect

Cause: The toggle is off, or a caching plugin is serving the old page.
Fix: Verify the toggle is on. Clear all caching layers.

The feature breaks another plugin

Cause: Another plugin depends on the functionality that this feature disables.
Fix: Disable this feature if it breaks another plugin.

Was this doc helpful?

Your answer tells us which docs to fix first.

Still stuck? Ask on the forum or email help@classicmonks.com.
Joy Chetry
Written by the person who built it

Joy Chetry

Founder & Lead Developer, Classic Monks

Joy is the founder of Classic Monks and GoodMonks Solutions, a web development agency that builds WordPress and WooCommerce sites for clients. Classic Monks grew out of the agency's own need to consolidate 20 to 30 separate plugins into one core stack.

Follow this doc on a real site.

Open a private WordPress site with Classic Monks, WooCommerce and Bricks Builder installed, and follow this doc step by step. Free for 24 hours, no card.

280 docs, written by Joy Chetry 15 day refund window