Skip to content

Fixed issue with local environment caching routes#842

Merged
michalkleiner merged 1 commit into
livefrom
route-caching-issue
Oct 31, 2025
Merged

Fixed issue with local environment caching routes#842
michalkleiner merged 1 commit into
livefrom
route-caching-issue

Conversation

@snake14

@snake14 snake14 commented Sep 26, 2025

Copy link
Copy Markdown
Contributor

Description:

While developing some new routes, I noticed that despite having CACHING_ENABLED set to false in my local config, I had to manually clear the route cache file each time I made a route path change. The line I changed appears to be doing the opposite of what you would expect and only caching routes when caching is disabled.

Review

@snake14

snake14 commented Oct 5, 2025

Copy link
Copy Markdown
Contributor Author

I tagged Core Team for review, but I just realised that maybe I should have tagged Websites Team instead. @textagroup Do you know whether there's a specific reason the CACHING_ENABLED constant was set the way it was? To me, it seems like it's doing the opposite of what it should be doing on the line that I'm changing in this PR.

@snake14

snake14 commented Oct 13, 2025

Copy link
Copy Markdown
Contributor Author

I tagged Core Team for review, but I just realised that maybe I should have tagged Websites Team instead. @textagroup Do you know whether there's a specific reason the CACHING_ENABLED constant was set the way it was? To me, it seems like it's doing the opposite of what it should be doing on the line that I'm changing in this PR.

Any idea about my question above @Frankie75321 ?

@snake14 snake14 requested review from a team and removed request for a team October 19, 2025 23:28
@michalkleiner

Copy link
Copy Markdown
Contributor

Since @tsteur came across the same and arrived at the same solution, I think this tweak is the correct solution. If there's no objection from @textagroup or @Frankie75321 or @sgiehl, I think we can merge this. On the face of it, it makes sense without the negation.

@Frankie75321

Copy link
Copy Markdown
Contributor

Since @tsteur came across the same and arrived at the same solution, I think this tweak is the correct solution. If there's no objection from @textagroup or @Frankie75321 or @sgiehl, I think we can merge this. On the face of it, it makes sense without the negation.

No objection from me. I came across the same thing.

@snake14

snake14 commented Oct 31, 2025

Copy link
Copy Markdown
Contributor Author

Thank you for everyone's feedback. Even with the PR being approved, I don't appear to have permission to merge. @Frankie75321 or someone else with merge permissions for this repo, could you please merge this PR?

@michalkleiner michalkleiner merged commit 4e5ebae into live Oct 31, 2025
1 check passed
@michalkleiner michalkleiner deleted the route-caching-issue branch October 31, 2025 06:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

4 participants