Wordpress Bundle
  • What is Wordpress Bundle?
  • Getting started
    • Installation
    • Wordpress
    • Router
    • Cron job
    • Templates
  • Reference
    • Argument resolver
    • Controller
      • AdminAction
      • BlogController
      • FrontAction
      • WordpressAction
    • Entity
      • Block
      • Blog
      • Comment
      • File
      • Image
      • Menu
      • MenuItem
      • Post
      • Term
      • User
    • Repository
      • CommentRepository
      • PostRepository
      • TermRepository
      • UserRepository
    • Service
      • PaginationService
      • BreacrumbService
  • Guides
    • Server requirements
    • Install plugins
    • Use Multisite
    • Gutenberg
    • WP Steroids plugin
      • Image options
      • Maintenance
      • Admin pages removal
      • WYSIWYG Editor
      • Feature Support
      • Multi-site configuration
      • Constants definition
      • ACF configuration
      • Menu
      • Custom Post type
      • Advanced permalink settings
      • Custom Taxonomy
      • Templates
      • Page states
      • External table viewer
      • Roles
      • Optimisations
      • Security
      • Search
    • Twig Cookbook
    • Inject variables in all templates
    • Internationalization
    • Extending Wordpress Bundle
    • Error pages
    • Site health
  • Integrations
    • Advanced Custom Fields
      • Install ACF PRO
  • Extras
    • Migrating from 1.x to 2.0
    • Roadmap
    • Changelog
    • Alternatives
Powered by GitBook
On this page
  • Usage
  • Check all pages
  • App token

Was this helpful?

  1. Guides

Site health

PreviousError pagesNextAdvanced Custom Fields

Last updated 3 years ago

Was this helpful?

Wordpress bundle add an additional route designed to get site health data

Wordpress will load last page, post and term to check status, content and timing

Usage

/_site-health?output=1

/_site-health?output=json

{
  "pages": [
    {
      "label": "Post post",
      "url": "/hello-world",
      "code": 200,
      "response_time": 43,
      "empty": false,
      "body": true,
      "valid": true
    },
    {
      "label": "Post page",
      "url": "/my-page",
      "code": 200,
      "response_time": 36,
      "empty": false,
      "body": true,
      "valid": true
    },
    {
      "label": "Post guide archive",
      "url": "/guide",
      "code": 200,
      "response_time": 34,
      "empty": false,
      "body": true,
      "valid": true
    },
    {
      "label": "Home",
      "url": "/",
      "code": 200,
      "response_time": 38,
      "empty": false,
      "body": true,
      "valid": true
    }
  ],
  "ip": "127.0.0.1",
  "env": "dev",
  "debug": true,
  "has_error": false,
  "title": "Demo",
  "language": "en-US"
}

Check all pages

Add full=1 to check all pages

App token

Add an APP_TOKEN in the environment to secure url access, add token as url parameter to grant access