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

Move placeholder generation into job #255

Merged
merged 2 commits into from
Oct 30, 2024
Merged

Conversation

aerni
Copy link
Contributor

@aerni aerni commented Oct 30, 2024

As discussed in #253, this PR moves the placeholder generation into a job than can be dispatched when using the php please responsive:generate command.

I've tested it with both glide caching on and off. The arbitrary cache parameter is still needed to not break the placeholder when switching between cache on/off.

BTW, this is for the same site that @jackmcdade mentioned in the recent discussion.

@riasvdv riasvdv merged commit 58c38a1 into spatie:main Oct 30, 2024
3 checks passed
@riasvdv
Copy link
Member

riasvdv commented Oct 30, 2024

Thanks! Can you send a PR that updates the command as well?

@aerni
Copy link
Contributor Author

aerni commented Oct 30, 2024

I don't think I understand what you're asking? The placeholder job is already dispatched in the command with dispatchImageJobs().

@riasvdv
Copy link
Member

riasvdv commented Oct 30, 2024

Ah sorry! Read the code on mobile and missed that bit

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

Successfully merging this pull request may close these issues.

2 participants