Skip to content

SSG fixes#3562

Merged
jasonvarga merged 2 commits into
3.1from
fix/ssg
Apr 23, 2021
Merged

SSG fixes#3562
jasonvarga merged 2 commits into
3.1from
fix/ssg

Conversation

@jasonvarga

@jasonvarga jasonvarga commented Apr 20, 2021

Copy link
Copy Markdown
Member

This PR attempts to fix issues related to the SSG. Namely how data would leak from one page to the next.

  • Flush the data when hydrating to get a fresh slate. This prevents data from one entry being available in others.
  • Remove the Store class that hung around from v2. Move that logic into the cascade.
  • Flush the sections when hydrating the cascade. This will prevent yielding content from a section tag used on a previous page.

Fixes statamic/ssg#38
Fixes statamic/ssg#37
Fixes statamic/ssg#15

(The SSG works similar to how Laravel Octane would work. I haven't tried it, but I suspect these issues would be happening there too. This PR should also fix it for Octane.)

@jasonvarga jasonvarga marked this pull request as ready for review April 23, 2021 13:52
@jasonvarga jasonvarga merged commit ada5c2e into 3.1 Apr 23, 2021
@jasonvarga jasonvarga deleted the fix/ssg branch April 23, 2021 14:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant