Content No Cache | Serve uncached partial content even when you add it to a page that is fully cached.
Normally, if a web page is served by the cache, its content will be always the same until the cache is deleted. By adding the content with the shortcode provided by Content No Cache, you will be able to show dynamic content even on pages served by cache. You don’t need this plugin to exclude the entire page from the cache. This plugin is to exclude a part of the page from the cache. It’s useful if you need to cache a page, but part of that page should not be cached. Imagine you have a page that has this content: Hello this is some text. Another line of text Another line of text Current day: Monday if that page is served by cache, the user will always see: Hello this is some text. Another line of text Another line of text Current day: Monday If you need that the last line of text is always updated, this plugin will help you. The entire page will be served by the cache, but the plugin will get the updated content that you need. How to show dynamic content with full page cache Install Content No Cache Create a new element “Content No Cache” Add to that element all the content that you want to exclude from the cache Copy the shortcode that you will see in the section “Shortcode”. It will look like [content_no_cache id=”3328″]. The parameter “id” is the ID of the content element (in this example 3328). Add the shortcode to the page where you want to display that content. Compatible caching plugins tested with Content No Cache W3 Total Cache WP Fastest Cache WP Optimize Comet Cache Cache Enabler Hyper Cache WP Super Cache LiteSpeed Cache Speed Optmizer WPRocket All of those caching plugins are compatible with Content No Cache. If your favorite caching plugin is not compatible for any reason, let us know it Compatible CDNs Cloudflare BunnyCDN StackPath KeyCDN Fastly CloudFront Main features Ultralightweight plugin. The few lines of code will run only where you add the shortcode. No jQuery, no JS libraries, only a couple of lines of pure JavaScript No database queries, no extra HTTP requests for external assets, no bloat With a few line of ultralight code you can fully cache the page even if you need dynamic content on that page It provides a shortcode, so you can add it everywhere, no matter the builder Tips to speed up the process to get the content Install Freesoul Deactivate Plugins Go to Freesoul Deactivate Plugins => Actions => Content No Cache Disable all the plugins that you don’t need to output the content Example You can see Content No Cache in action visiting the blog post Exclude specific content from being cached. You will see a number that is always different when you refresh the page. But the page is served by full page cache. In the example it’s just a number, but you can output whatever content you want. Possible conflicts Some plugins don’t load the shortcodes during ajax requests. Because Content No Cache retrieves the content through ajax, in those cases the content will not be displayed properly. If you have this kind of issue set the parameter request=”remote”. In this case the shortcode will look like [content_no_cache id=”3328″ request=”remote”] The plugin will retrieve the content in a different way that will be a little slower, but this will solve this kind of conflict. Help If something doesn’t work for you, don’t hesitate to open a thread on the Support Forum Please, before posting enable the debugging in wp-config.php. Need a step-by-step guide? Read this detailed tutorial on how to enable debugging in WordPress to learn more. Backend Speed Optimization Is your dashboard slow? I optimize admin performance by improving queries and plugin load. Read Backend Speed Optimization for more information.
Top keywords
- cache29×4.43%
- content27×4.13%
- page15×2.29%
- content no cache10×1.53%
- shortcode7×1.07%
- text7×1.07%
- line6×0.92%
- line of text5×0.76%
- served5×0.76%
- add4×0.61%
- always4×0.61%
- another4×0.61%
StaticDelivr
StaticDelivr CDN is a lightweight and powerful plugin designed to improve your WordPress site’s performance. By rewriting theme, plugin, core file resource URLs, optimizing images, and proxying Google Fonts through the StaticDelivr CDN, the plugin ensures faster loading times, reduced server load, better privacy, and an improved user experience. StaticDelivr is a global content delivery network (CDN) that supports delivering assets from various platforms like npm, GitHub, and WordPress. By leveraging geographically distributed servers, StaticDelivr optimizes the delivery of your static assets such as CSS, JavaScript, images, and fonts. Key Features Smart Asset Detection: Automatically detects which themes and plugins are from wordpress.org and only serves those via CDN. Custom themes and plugins are served locally. No configuration needed! Failure Memory System: If a CDN resource fails to load, the plugin remembers and automatically serves it locally for 24 hours. No more repeated failures! Automatic URL Rewriting: Automatically rewrites URLs of enqueued styles, scripts, and core files for themes, plugins, and WordPress itself to use the StaticDelivr CDN. Image Optimization: Automatically optimizes images with compression and modern format conversion (WebP, AVIF). Turn 2MB images into 20KB without quality loss! Google Fonts Privacy Proxy: Serve Google Fonts without tracking (GDPR compliant). A drop-in replacement that strips all user-identifying data and tracking cookies. Automatic Fallback: If a CDN asset fails to load, the plugin automatically falls back to your origin server, ensuring your site never breaks. Localhost Detection: Automatically detects development environments and serves images locally when CDN cannot reach them. Child Theme Support: Intelligently handles child themes by checking parent theme availability on wordpress.org. Separate Controls: Enable or disable assets (CSS/JS), image optimization, and Google Fonts proxy independently. Quality & Format Settings: Customize image compression quality and output format. Verification Dashboard: See exactly which assets are served via CDN vs locally in the admin panel. Failure Statistics: View which resources have failed and are being served locally, with option to clear cache. Compatibility: Works seamlessly with all WordPress themes and plugins — both from wordpress.org and custom/premium sources. Improved Performance: Delivers assets from the StaticDelivr CDN for lightning-fast loading and enhanced user experience. Multi-CDN Support: Leverages multiple CDNs to ensure optimal availability and performance. Free and Open Source: Supports the open-source community by offering free access to a high-performance CDN. Use of Third-Party Service This plugin relies on the StaticDelivr CDN to deliver static assets, including WordPress themes, plugins, core files, optimized images, and Google Fonts. The CDN uses the public WordPress SVN repository to fetch theme/plugin files and serves them through a globally distributed network for faster performance and reduced bandwidth costs. Service Terms of Use: StaticDelivr Terms Privacy Policy: StaticDelivr Privacy Policy How It Works StaticDelivr CDN rewrites your WordPress asset URLs to deliver them through its high-performance network: Smart Asset Detection The plugin automatically verifies which themes and plugins exist on wordpress.org: WordPress.org Assets: Served via StaticDelivr CDN for maximum performance Custom/Premium Assets: Automatically detected and served from your server Child Themes: Parent theme is checked. If the parent is on wordpress.org, assets load via CDN This means the plugin “just works” with any combination of wordpress.org and custom themes/plugins! Failure Memory System (New in 1.7.0!) The plugin learns from CDN failures and automatically adapts: First failure: Fallback fires, failure is recorded Second failure: Resource is blocked from CDN for 24 hours Auto-recovery: After 24 hours, resources are retried automatically Manual reset: Clear the failure cache anytime from settings This ensures that problematic resources (Cloudflare-protected images, auth-gated content, etc.) are handled gracefully without repeated failures. Assets (CSS & JavaScript) Original URL: `https://example.com/wp-content/themes/theme-name/version/style.css` Rewritten CDN URL: `https://cdn.staticdelivr.com/wp/themes/theme-name/version/style.css` This process applies to themes, plugins, and core files: Themes: Original: `https://example.com/wp-content/themes/twentytwentythree/1.0/style.css` CDN: `https://cdn.staticdelivr.com/wp/themes/twentytwentythree/1.0/style.css` Plugins: Original: `https://example.com/wp-content/plugins/woocommerce/assets/js/frontend/woocommerce.min.js` CDN: `https://cdn.staticdelivr.com/wp/plugins/woocommerce/tags/9.3.3/assets/js/frontend/woocommerce.min.js` Core Files: Original: `https://example.com/wp-includes/js/jquery/jquery.min.js` CDN: `https://cdn.staticdelivr.com/wp/core/tags/6.9/wp-includes/js/jquery/jquery.min.js` Images Original: `https://example.com/wp-content/uploads/2024/01/photo.jpg` (2MB) Optimized CDN: `https://cdn.staticdelivr.com/img/images?url=https://example.com/wp-content/uploads/2024/01/photo.jpg&q=80&format=webp` (~20KB) Google Fonts Original CSS: `https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap` Privacy Proxy: `https://cdn.staticdelivr.com/gfonts/css2?family=Inter:wght@400;500;600&display=swap` Original Font Files: `https://fonts.gstatic.com/s/inter/v20/example.woff2` Privacy Proxy: `https://cdn.staticdelivr.com/gstatic-fonts/s/inter/v20/example.woff2` This ensures faster delivery through StaticDelivr’s globally distributed network while protecting user privacy. Why Use StaticDelivr? Zero Configuration: Smart detection means it works out of the box with any theme/plugin combination. Self-Healing: Failure memory system automatically adapts to problematic resources. Global Distribution: StaticDelivr serves your assets from a globally distributed network, reducing latency and improving load times. Massive Bandwidth Savings: Offload heavy image delivery to StaticDelivr. Optimized images can be 10-100x smaller! Privacy-First Google Fonts: Serve Google Fonts without tracking cookies — GDPR compliant without additional cookie banners. Works with Custom Themes: Unlike other CDN plugins, StaticDelivr automatically detects custom themes/plugins and serves them locally. Browser Caching Benefits: As an open-source CDN used by many sites, assets served by StaticDelivr are likely already cached in users’ browsers. This enables faster load times when visiting multiple sites using StaticDelivr. Significant Bandwidth Savings: Reduces your site’s bandwidth usage and number of requests significantly by offloading asset delivery to StaticDelivr. Optimized Performance: Ensures assets are delivered quickly, no matter where your users are located. Comprehensive WordPress Support: Includes support for delivering core WordPress files (e.g., those in the `wp-includes` directory) to enhance site speed and reliability. Support for Popular Platforms: Easily integrates with npm, GitHub, WordPress, and Google Fonts. Minimal Configuration: Just enable the features you want and the plugin handles the rest. Development Friendly: Automatically detects localhost and development environments. Translations StaticDelivr CDN is available in the following languages: English (default) Spanish (Español) – es_ES, es_MX French (Français) – fr_FR German (Deutsch) – de_DE Italian (Italiano) – it_IT Portuguese Brazil (Português) – pt_BR Dutch (Nederlands) – nl_NL Japanese (日本語) – ja Chinese Simplified (简体中文) – zh_CN Chinese Traditional (繁體中文) – zh_TW Russian (Русский) – ru_RU Arabic (العربية) – ar Korean (한국어) – ko_KR Turkish (Türkçe) – tr_TR Polish (Polski) – pl_PL Ukrainian (Українська) – uk Czech (Čeština) – cs_CZ Hungarian (Magyar) – hu_HU Romanian (Română) – ro_RO Swedish (Svenska) – sv_SE Danish (Dansk) – da_DK Finnish (Suomi) – fi Hebrew (עברית) – he_IL Persian (فارسی) – fa_IR Hindi (हिन्दी) – hi Vietnamese (Tiếng Việt) – vi Thai (ไทย) – th Indonesian (Bahasa Indonesia) – id_ID Urdu (اردو) – ur Want to help translate StaticDelivr CDN into your language? Visit translate.wordpress.org to contribute! License This plugin is licensed under the GPLv2 or later. See License URI for details.