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

Serving uncached response #11437

Closed
stephenmeehanuk opened this issue Feb 8, 2025 · 1 comment
Closed

Serving uncached response #11437

stephenmeehanuk opened this issue Feb 8, 2025 · 1 comment
Labels

Comments

@stephenmeehanuk
Copy link

stephenmeehanuk commented Feb 8, 2025

Bug description

Hi

The site on staging and production servers isn't using cached pages?

The control panel is showing cached pages:

Image

Logs

[2025-02-08 10:30:09] production.DEBUG: Static cache region [e00572618a13305561210e2f144f563d1314527209a6a600c563752ba3a2bffa0fee5911] not found on [https://website.org/contact]. Serving uncached response.  
[2025-02-08 10:39:59] production.DEBUG: Static cache region [e00572618a13305561210e2f144f563d13145272c77766323672493aa09dbf941ea4c1e6] not found on [https://website.org]. Serving uncached response.  
[2025-02-08 10:39:59] production.DEBUG: Static cache region [e00572618a13305561210e2f144f563d13145272c77766323672493aa09dbf941ea4c1e6] not found on [https://website.org]. Serving uncached response.  
[2025-02-08 10:43:48] production.DEBUG: Static cache region [e00572618a13305561210e2f144f563d13145272c77766323672493aa09dbf941ea4c1e6] not found on [https://website.org]. Serving uncached response.  
[2025-02-08 10:43:48] production.DEBUG: Static cache region [e00572618a13305561210e2f144f563d13145272c77766323672493aa09dbf941ea4c1e6] not found on [https://website.org]. Serving uncached response.  
[2025-02-08 10:46:34] production.DEBUG: Static cache region [e00572618a13305561210e2f144f563d1314527200bc66b0b03d43d7bea38faa6877e95c] not found on [https://website.org/wlrs/listen-up/visit-planet-divoc-91]. Serving uncached response.  
[2025-02-08 10:46:34] production.DEBUG: Static cache region [e00572618a13305561210e2f144f563d1314527200bc66b0b03d43d7bea38faa6877e95c] not found on [https://website.org/wlrs/listen-up/visit-planet-divoc-91]. Serving uncached response.
@stephenmeehanuk
Copy link
Author

stephenmeehanuk commented Feb 9, 2025

Figured out the 'problem'...

I'd put this partial in my layout:

{{ nocache }} 
	{{ if logged_in }}
		<a class="fixed left-6 bottom-6" target="_blank" href="{{ edit_url }}">Edit Page</a>
	{{ /if }}
{{ /nocache }} 

I usually have this link in a template, but I thought I'd put it in the layout instead since this particular website only uses a few layouts. The nocache tag being in the layout messed with the page cache. Whoops.

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

2 participants