I am creating new attachments on wp_posts through mysql, but the slug isn’t working as an permalink.
But when I upload a new image through WP those same slugs work fine (all them, mine and WP’s).
I took a look at wp_insert_post() and find wp_cache_flush(). What does this function do exactly? Could be this the diference between wp_insert_post and mysql wp_post new entry?
thanks in advance =]