-
Notifications
You must be signed in to change notification settings - Fork 111
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
Broken page cache expiration logic #89
Comments
Have you looked at I think your complaint is that
I'm not sure what you mean by "links to deleted redirects don't get expired".
Is this not the behaviour you expect? |
Just to be clear, inclusion of redirected pages is not allowed.
|
I wanted to try, but I couldn't figure out how to install Instiki again. I tried on two systems with ruby-3.0 (Arch Linux and Debian) and also the Dockerfile. Following the README, the command
finishes successfully. But when running
What am I doing wrong? EDIT: When I tried the Dockerfile, I had to lift the Ruby verison to 2.6. Otherwise, the container build failed. |
A separate cache expiration problem I just noticed when testing:
|
I see. I didn't know that. |
Example:
It seems even links to renamed pages don't get expired. Example:
|
I can't reproduce this. |
Here is another bug:
|
Counterexample (not involving redirects):
EDIT: Page C is not necessary in this example. So just:
|
This is currently the logic for expiring a page:
But shouldn't it be as follows?
Notation for a set of pages X:
WITH_REDIRECTS(X)X, then p is in X. Write INCLUSION_CLOSURE(X) for the smallest extension of X closed under inclusion. This can be computed recursively.Write INCLUSION_REDIRECTS(X) for WITH_REDIRECTS(INCLUSION_CLOSURE(X)).Then when a page p is edited:
INCLUSION_REDIRECTS(p)INCLUSION_CLOSURE(p).INCLUSION_REDIRECTS(LINK_TO(WITH_REDIRECTS(p)))INCLUSION_CLOSURE(LINK_TO(WITH_REDIRECTS(p))).There some further problems, which seem however by design and not so easily fixed:
The text was updated successfully, but these errors were encountered: