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' ) ) {