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

FileStampDataCacher looks for pages in an incorrect location #3422

Open
GiovanH opened this issue Nov 4, 2024 · 0 comments
Open

FileStampDataCacher looks for pages in an incorrect location #3422

GiovanH opened this issue Nov 4, 2024 · 0 comments
Labels

Comments

@GiovanH
Copy link
Contributor

GiovanH commented Nov 4, 2024

Pelican version: 4.9.1 (git)
Python version: 3.11.5

Caching settings:

CACHE_CONTENT = True
CHECK_MODIFIED_METHOD = 'mtime'
LOAD_CONTENT_CACHE = True
CONTENT_CACHING_LAYER = 'reader'  # reader or generator

After manually setting the slugs of some pages, I'm seeing errors in the form of

           WARNING  Cannot get modification stamp for                                                             cache.py:125
                    [...]pelican-blog\content\pages\recommendations\unsorted
                            [WinError 2] The system cannot find the file specified:
                    '[...]pelican-blog\\content\\pages\\recommendations\\unsorted'

The page header is in the form of

---
Title: Recommendations: Unsorted
slug: recommendations/unsorted
date: 1970-01-01
Status: hidden
---

What stands out to me is that the source file is not content\pages\recommendations\unsorted. In my case, I've changed it to content\pages\recommendations\unsorted test.md.

Is the cacher (

import pickle
) incorrectly basing the source file logic on the expected slug, instead of the source file?

@GiovanH GiovanH added the bug label Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant