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

Sometimes, new pages are generated but they still contain the old content #73

Closed
JJ opened this issue Jan 19, 2020 · 5 comments
Closed
Assignees

Comments

@JJ
Copy link
Contributor

JJ commented Jan 19, 2020

I can't really pinpoint how this work, but in some ocassions, new pages are generated, but they contain the old content. This might be when a single page in language is changed, but I haven't really been able to pin it down to anything.

@JJ JJ added the bug Something isn't working label Jan 19, 2020
@JJ
Copy link
Contributor Author

JJ commented Jan 21, 2020

I've checked it again. documentable update is simply not working. It's generating new pages, but uses old content. I don't know if it happens after a while, or when there are many files, so I can't golf it down, but this is really broken.

@JJ JJ added the Blocker High priority bug that needs to be fixed RSN label Jan 21, 2020
@JJ
Copy link
Contributor Author

JJ commented Jan 21, 2020

I have been observing the behavior of this, and it looks like it's using not the latest version, but the next-to-last one. As if the cache was being updated after the pages were generated.

@antoniogamiz
Copy link
Collaborator

After some testing I have discovered that the problem is Pod::To::Cached. It does not return the updated version of the pod. You can check this with the following code:

(modify the subtitle of docs/Type/Documentable.pod6)

use lib 'lib';
use Documentable::CLI;
use Pod::To::Cached;
use Documentable::Utils::IO;

my $cache-dir = cache-path("docs");

my $pod-cache = Pod::To::Cached.new(
    source      => "docs",
    :verbose,
    path        => $cache-dir
);

$pod-cache.update-cache;

my $pod = $pod-cache.pod("type/documentable");

# the subtitle of the pod 
say $pod[0].contents[1].contents[0].contents.first

@JJ
Copy link
Contributor Author

JJ commented Feb 10, 2020 via email

@JJ
Copy link
Contributor Author

JJ commented Aug 1, 2020

Great job!

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