bednee / cooluri

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

404 after clearing link cache #77

Open martin-edelmann opened 6 years ago

martin-edelmann commented 6 years ago

Expected Behavior

After clearing the link cache I can access pages with deep links, example link given below.

Current Behavior

Every time I clear the link_cache and link_oldlinks table, the pages further down the page tree on my website throw an 404-error when trying to access them. This error exists until a parent page containing a link to this website is called. For example, I can’t access https://www.heco.de/en/edelstahl/flanges/welding-neck-flanges/pn-16.html directly after clearing the cache, but only after I navigate downwards from https://www.heco.de.

Your Environment

Ideas

Is there a way to trigger filling of the link cache automatically? Is this kind of behaviour fixed in any of the newer versions?

bednee commented 6 years ago

This is expected behavior. Why don't you use the "Force update of all links" function? That does exactly what you want - links will be updated when firstly displayed and when changed, there will be a redirect setup. I don't see reason to delete all links on regular basis. There are extensions for TYPO3 that would visit all pages and thus generate all links - see https://extensions.typo3.org/?L=0&id=1&tx_solr%5Bq%5D=crawler

martin-edelmann commented 6 years ago

Thanks for the quick answer! Is there a way to trigger the "force update all links" programmatically? We are using this as part of our deployment process, so a shell or PHP script would be perfect. I will also test the crawlers and report the findings regarding to my posted problem.

bednee commented 6 years ago

The lastest commit added possibility to schedule this action in Scheduler, so you can inspire yourself there.