#3422·pelican

FileStampDataCacher looks for pages in an incorrect location

Author: GiovanHCreated Nov 4, 2024Updated Sep 14, 2026
Labelsbug

Pelican version: 4.9.1 (git) Python version: 3.11.5

Caching settings:

python
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

yaml
---
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 (https://github.com/getpelican/pelican/blob/4ca14542935a8933b49b2ec50db25a52ffb38dce/pelican/cache.py#L4) incorrectly basing the source file logic on the expected slug, instead of the source file?