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

Scheduled entries don't display in a listing until a minute after the publish time #10994

Closed
aaronbushnell opened this issue Oct 22, 2024 · 1 comment

Comments

@aaronbushnell
Copy link
Contributor

Bug description

Looks like this was a conscious decision in #10966, but if I'm displaying a collection of "blog posts" in a list and have a publish date of 8:00 AM the new entry won't show up in that listing until 8:01 AM. I was hoping that the time the entry is published both the detail page and areas where it is listed would show that post.

How to reproduce

  1. Create a blog detail and listing page
  2. Enable full static caching
  3. Schedule a new blog post 1 minute from your current time
  4. Wait one minute and run php artisan schedule:run
  5. Refresh the detail page and you'll see the post is available
  6. Refresh the listing page and the post is not visible
  7. Wait another minute and run php artisan schedule:run again
  8. The post is now visible on listing view

Logs

No response

Environment

Environment
Application Name: Statamic Starter
Laravel Version: 11.29.0
PHP Version: 8.3.12
Composer Version: 2.7.7
Environment: local
Debug Mode: ENABLED
URL: statamic-starter.test
Maintenance Mode: OFF
Timezone: America/Indiana/Indianapolis
Locale: en

Cache
Config: NOT CACHED
Events: NOT CACHED
Routes: NOT CACHED
Views: CACHED

Drivers
Broadcasting: log
Cache: file
Database: sqlite
Logs: stack / single
Mail: log
Queue: sync
Session: file

Statamic
Addons: 8
Sites: 1
Stache Watcher: Enabled (auto)
Static Caching: full
Version: 5.33.0 PRO

Statamic Addons
rias/statamic-redirect: 3.8.1
statamic/seo-pro: 6.3.0
trendyminds/guide: dev-main
trendyminds/link: dev-main
trendyminds/nerf: 1.2.0
trendyminds/orbit-statamic: 2.0.0
trendyminds/statamic-palette: 1.2.1
trendyminds/tip: 1.0.0

Installation

Other (please explain)

Additional details

Using a starter kit we built as a GitHub templated repo and cloned

@jasonvarga
Copy link
Member

jasonvarga commented Oct 22, 2024

As you noted, it was a conscious decision. That's just the way it has to be for now. The reasoning is explained in the PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants