• Resolved ITS Alaska

    (@itsalaska)


    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/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Mikko Saari

    (@msaari)

    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.

    Thread Starter ITS Alaska

    (@itsalaska)

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Relevanssi – A Better Search] Relevanssi Chron Indexing’ is closed to new replies.