Last updated 6 years ago
You can programmatically recreate the sites rewrite rules with the flush() method. This is an expensive operation and should be used with caution, see for more.
flush()
$books->flush();