crawlwp / mihdan-index-now

IndexNow is a small WordPress Plugin for quickly notifying search engines whenever their website content is created, updated, or deleted.
https://wordpress.org/plugins/mihdan-index-now/
GNU General Public License v2.0
19 stars 3 forks source link

Do not ping in 10 minutes #31

Closed javiergutierrezchamorro closed 1 year ago

javiergutierrezchamorro commented 2 years ago

According to the IndexNow recommendations, you should not ping same URL in less than 10 minutes. Current implementation is sending ping each time a post or comment is published. In site with big traffic like mine (https://www.javiergutierrezchamorro.com/) where comments are frequent, this implies sometimes pinging each 1 or 2 minutes.

Would be nice if the plugin can check latest ping sent of that URL and if less than 10 minutes old, skip it.