Moon Static HTML Pages
·
Generates static HTML for your pages and serves them instantly, bypassing heavy WordPress processes.
Moon Static HTML Pages is a high-performance solution for serving WordPress content. It generates static HTML files of your posts, pages, and archives, and serves them either through high-performance .htaccess rules or an early-PHP fallback.
Features
- Ultra-Fast Performance: Serve your pages as raw static HTML. Bypasses WordPress core and database queries entirely when using .htaccess mode.
- Automated Site Generation: One-click tool to generate your entire site's static files with real-time progress tracking and logs.
- Real-time Synchronization: Automatically regenerates specific static pages whenever you update a post, page, or category.
- Smart Pagination Caching: Automatically discovers and generates static HTML for paginated archives and listing pages.
- Advanced Redirection Manager: Powerful built-in SEO tool to manage 301, 302, and 307 redirects with direct .htaccess synchronization.
- WooCommerce Integration: Intelligently handles dynamic cart/checkout pages and overrides Store API nonces for seamless add-to-cart functionality on cached shop pages.
- Smart Exclusions: Robust settings to exclude specific post types or individual pages from being cached.
- Admin Bypass: Logged-in administrators and editors automatically bypass the static cache to ensure they always see live, real-time changes.
- Premium Admin Dashboard: Modern interface with real-time status indicators and colored "Generated" badges directly in your Post/Page lists.
- Multi-Layer Serving: Employs high-performance Apache rewrite rules for maximum speed, with a reliable PHP fallback for other server environments.
- WordPress Multisite Compatible: Fully supports multisite networks with individual static cache directories and rules for each subsite.
Configuration
- Dashboard Overview: Navigate to Moon Static HTML > Dashboard.
- Exclusions: Check any Post Types or Taxonomies (Categories/Tags) you want to exclude from the static cache under the "Manage Post Type Exclusions" and "Manage Category / Tag Exclusions" sections.
- Nonce Auto Refresh: If you use AJAX forms or WooCommerce in long-running admin sessions, enable "Nonce Auto Refresh" and select an interval.
- CPT Listing Page Mapping: If you use custom post types, map them to their corresponding archive/listing page URLs (e.g., set
portfolioto/portfolio-list/). This ensures the listing page is regenerated when a new item is published. - Save Settings: Click the Save All Settings button at the bottom of the page to apply your configuration.
- Enable High Performance: Click the Update .htaccess Rules button to deploy the Apache rewrite rules, enabling ultra-fast direct serving of static files.
- Generate Site: Finally, click Start Generation or Generate All to build your initial static HTML cache.
