• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
Jetpack a2z

Jetpack a2z

Jetpack a2z

  • Home
  • Plugins
  • Blocks
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / Files / modules/sitemaps/sitemap-constants.php


Lines:

1 to 100 of 156
<?php

/**
 * Sitemap-related constants.
 *
 * @package Jetpack
 * @since 4.8.0
 * @author Automattic
 */


/**
 * Number of seconds between sitemap and news sitemap updates in development code.
 * In production, sitemaps are cached for 12 hours.
 * In development, sitemaps are cache for 1 minute.
 *
 * @since 7.7.0
 */
if ( defined( 'JETPACK_DEV_DEBUG' ) && JETPACK_DEV_DEBUG ) {
  if ( ! defined( 'JP_SITEMAP_INTERVAL') ) {
    define( 'JP_SITEMAP_INTERVAL', 60 );
  }
  if ( ! defined( 'JP_NEWS_SITEMAP_INTERVAL') ) {
    define( 'JP_NEWS_SITEMAP_INTERVAL', 60 );
  }
}


/**
 * Maximum size (in bytes) of a sitemap xml file.
 * Max is 716800 = 700kb to avoid potential failures for default memcached limits (1MB)
 *
 * @link https://www.sitemaps.org/
 * @since 4.8.0
 */
if ( ! defined( 'JP_SITEMAP_MAX_BYTES' ) ) {
  define( 'JP_SITEMAP_MAX_BYTES', 716800 );
}


/**
 * Maximum size (in url nodes) of a sitemap xml file.
 * Per the spec, max value is 50000.
 *
 * @link https://www.sitemaps.org/
 * @since 4.8.0
 */
if ( ! defined( 'JP_SITEMAP_MAX_ITEMS' ) ) {
  define( 'JP_SITEMAP_MAX_ITEMS', 2000 );
}


/**
 * Maximum size (in url nodes) of a news sitemap xml file.
 * Per the spec, max value is 1000.
 *
 * @link https://support.google.com/news/publisher/answer/74288?hl=en
 * @since 4.8.0
 */
if ( ! defined( 'JP_NEWS_SITEMAP_MAX_ITEMS' ) ) {
  define( 'JP_NEWS_SITEMAP_MAX_ITEMS', 1000 );
}


/**
 * Batch size for database queries.
 *
 * @since 4.8.0
 */
if ( ! defined( 'JP_SITEMAP_BATCH_SIZE' ) ) {
  define( 'JP_SITEMAP_BATCH_SIZE', 50 );
}


/**
 * Number of sitemap files to update on each run.
 *
 * @since 4.8.0
 */
if ( ! defined( 'JP_SITEMAP_UPDATE_SIZE' ) ) {
  define( 'JP_SITEMAP_UPDATE_SIZE', 100 );
}


/**
 * Number of seconds between sitemap updates.
 *
 * @since 4.8.0
 */
if ( ! defined( 'JP_SITEMAP_INTERVAL' ) ) {
  define( 'JP_SITEMAP_INTERVAL', 12 * HOUR_IN_SECONDS );
}


/**
 * Number of seconds to lock the sitemap state.
 *
 * @since 4.8.0
 */
if ( ! defined( 'JP_SITEMAP_LOCK_INTERVAL' ) ) {
[1] [2] Next »

 View on GitHub View on Trac

Called by

    Invoked by

      Calls

      Call hooks

      File name: modules/sitemaps/sitemap-constants.php
      Plugin ref: Jetpack
      Version: 9.4
      Deprecated?: No
      API Letters: C,M,P,S

      Related

      Published: 27 November 2019 | Last updated: 27 November 2019

      Primary Sidebar

      Information

      File name: modules/sitemaps/sitemap-constants.php
      Plugin ref: Jetpack
      Version: 9.4
      Deprecated?: No
      API Letters: C,M,P,S

      modules/sitemaps

      Footer

      Jetpack a2z
      Jetpack a2z
      Jetpack a2z
      WordPress 5.6.2
      WordPress a2z
      WordPress core a2z
      Genesis Theme Framework a2z
      Jetpack a2z
      WordPress develop tests
      Easy Digital Downloads a2z
      WooCommerce a2z
      Yoast SEO a2z
      WordPress Blocks

      Site:  jetpack.wp-a2z.org
      © Copyright Jetpack a2z 2014-2021. All rights reserved.


      Website designed and developed by Herb Miller
      Proudly powered by WordPress and oik plugins

      • Home
      • Blog
      • Sitemap
      • Sites