Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

404 after clearing link cache #77

Open
martin-edelmann opened this issue Dec 5, 2017 · 3 comments
Open

404 after clearing link cache #77

martin-edelmann opened this issue Dec 5, 2017 · 3 comments

Comments

@martin-edelmann
Copy link

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

  • TYPO3 4.5.10
  • CoolURI 1.0.39

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
Copy link
Owner

bednee commented Dec 5, 2017

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
Copy link
Author

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
Copy link
Owner

bednee commented Dec 5, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants