I'm using pretty permalinks and it worked fine until recently. After I upgraded to 2.2, I've noticed that every three or four times I edit pages, the links suddenly break and it goes to my 404 page.
The thing is, I coded my 404 page to automatically look for the "right" page by looking up the permalink. The link it shows is the page I'm on so the backend still understands that this is the correct page, but it still won't show it.
To fix it, I have to change the permalinks to one of the default options (save it), then change it back to /%postname%/ and save it again.
This works, but is very annoying. What is going on and how do I stop it?