to limit the number of links that are indexed when in cron action. * * @param int $limit Maximum number of link indexables to be indexed per link indexing action. */ return \apply_filters( 'wpseo_cron_link_indexing_limit_size', 3 ); } return $link_indexation_limit; } /** * Determine whether cron indexation should be performed. * * @return bool Should cron indexation be performed. */ protected function should_index_on_cron() { if ( ! $this->indexable_helper->should_index_indexables() ) { return false; } // The filter supersedes everything when preventing cron indexation. if ( \apply_filters( 'Yoast\WP\SEO\enable_cron_indexing', true ) !== true ) { return false; } return $this->indexing_helper->get_limited_filtered_unindexed_count_background( 1 ) > 0; } /** * Determine whether background indexation should be performed. * * @param int $shutdown_limit The shutdown limit used to determine whether indexation should be run. * * @return bool Should background indexation be performed. */ protected function should_index_on_shutdown( $shutdown_limit ) { if ( ! $this->yoast_admin_and_dashboard_conditional->is_met() || ! $this->get_request_conditional->is_met() ) { return false; } if ( ! $this->indexable_helper->should_index_indexables() ) { return false; } if ( $this->wp_cron_enabled_conditional->is_met() ) { return false; } $total_unindexed = $this->indexing_helper->get_limited_filtered_unindexed_count_background( $shutdown_limit ); if ( $total_unindexed === 0 || $total_unindexed > $shutdown_limit ) { return false; } return true; } /** * Retrieves the shutdown limit. This limit is the amount of indexables that is generated in the background. * * @return int The shutdown limit. */ protected function get_shutdown_limit() { /** * Filter 'wpseo_shutdown_indexation_limit' - Allow filtering the number of objects that can be indexed during shutdown. * * @param int $limit The maximum number of objects indexed. */ return \apply_filters( 'wpseo_shutdown_indexation_limit', 25 ); } /** * Removes the cron indexing job from the scheduled event queue. * * @return void */ protected function unschedule_cron_indexing() { $scheduled = \wp_next_scheduled( 'wpseo_indexable_index_batch' ); if ( $scheduled ) { \wp_unschedule_event( $scheduled, 'wpseo_indexable_index_batch' ); } } /** * Registers a method to be executed on shutdown. * This wrapper mostly exists for making this class more unittestable. * * @param string $method_name The name of the method on the current instance to register. * * @return void */ protected function register_shutdown_function( $method_name ) { \register_shutdown_function( [ $this, $method_name ] ); } } {"id":1832,"date":"2016-12-25T10:10:27","date_gmt":"2016-12-25T10:10:27","guid":{"rendered":"http:\/\/localejobs.com\/product\/opr006\/"},"modified":"2017-08-06T15:01:30","modified_gmt":"2017-08-06T15:01:30","slug":"opr006","status":"publish","type":"product","link":"https:\/\/jj-studios.in\/product\/opr006\/","title":{"rendered":"OPR006"},"content":{"rendered":"","protected":false},"excerpt":{"rendered":"","protected":false},"featured_media":1833,"comment_status":"open","ping_status":"closed","template":"","meta":[],"product_cat":[33],"product_tag":[],"class_list":{"0":"post-1832","1":"product","2":"type-product","3":"status-publish","4":"has-post-thumbnail","6":"product_cat-oil-painting-reproductions","7":"pa_made-on-oil-on-canvas","8":"pa_painting-type-un-framed","9":"pa_sizes-36-inch-width-x-24-inch-height","11":"first","12":"instock","13":"shipping-taxable","14":"purchasable","15":"product-type-simple"},"yoast_head":"\n