WordPress.org

Ready to get started?Download WordPress

Forums

Relevanssi - A Better Search
[resolved] Relevanssi Chron Indexing (3 posts)

  1. ITS Alaska
    Member
    Posted 3 years ago #

    WordPress has a built in chron job handler

    i put this in my theme file:

    if (!wp_next_scheduled('relevanssi_build_index')) {
    	wp_schedule_event( time(), 'daily', 'relevanssi_build_index' );
    }

    Will this build the index every day? and if it will, why isn't this part of the plugin. i don't want to have to index every time i update my shortcode handled pages.

    http://wordpress.org/extend/plugins/relevanssi/

  2. Mikko Saari
    Member
    Plugin Author

    Posted 3 years ago #

    Yes, it will rebuild the index every day. It's not part of the plugin because a) it didn't come to my mind (even though I've used scheduled events a lot) and b) 99% of users won't need it.

    This is necessary only when you're using lots of shortcodes or other dynamic content. Also, if your database is large enough that your server can't index it on one go, this'll create problems.

  3. ITS Alaska
    Member
    Posted 3 years ago #

    Thanks for including this in the FAQ!
    I feel special.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags