bednee / cooluri

GIT repository for TYPO3 extension CoolUri
7 stars 12 forks source link

After "DELETE EVERYTHING AND START AGAIN" the "Cached URI" field in "Old links" table is empty #83

Open robofant opened 6 years ago

robofant commented 6 years ago

After a relaunch of a website with TYPO3 I used "New redirect" to add some redirects from the old URLs to the new ones. I made them sticky. After "DELETE EVERYTHING AND START AGAIN" without "Delete sticky too" activated, the "Cached URI" field in each entry of the "Old links" table is empty.

Had a look into the tables. Since all entries in the table link_oldlinks have a relation to an entry in the table link_cache, all entries in the table link_cache which have a relation to the table link_oldlinks must be sticky, too. Or all entries in link_oldlinks must not refer to an entry in link_cache but to the page id.

robofant commented 6 years ago

Here is my suggested fix. Main.php.diff.txt Explanation: don't delete cached links where an old link is referring to which is sticky.