rMW62b9d21ccc53: Add caching to Title::loadRestrictions() added caching to the loading of data from the page_restrictions table. It makes the assumption that any action that changes the protections will also create a null revision and therefore invalidate the key which is based on page ID and revision ID, but this is not true for the case when the page is deleted and undeleted.
To reproduce:
- Have your wiki set up to use persistent caching.
- Create a page, and protect it.
- Delete the page. Run jobs, if necessary.
- Observe that there are no entries for the page in the page_restrictions table.
- Undelete the page.
- Observe that there are still no entries for the page in the page_restrictions table.
- Observe that MediaWiki still thinks the page is protected.
- Flush the cache (e.g. restart memcached).
- Observe that MediaWiki now correctly shows the page as not being protected.