-
Notifications
You must be signed in to change notification settings - Fork 13
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
Comments
I've checked it again. |
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. |
After some testing I have discovered that the problem is (modify the subtitle of 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 |
Can you please raise the issue there?
El dom., 9 feb. 2020 a las 21:14, Antonio (<[email protected]>)
escribió:
… 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
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#73?email_source=notifications&email_token=AAAAD5A5UU2UHL7A5SEGZKDRCBP35A5CNFSM4KI3GQJ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELGWZJI#issuecomment-583888037>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAAD5C3CMZQIX22EVUFF3TRCBP35ANCNFSM4KI3GQJQ>
.
--
JJ
|
Great job! |
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.
The text was updated successfully, but these errors were encountered: