Skip to content
This repository has been archived by the owner on Jan 28, 2022. It is now read-only.

FEATURE: Setting for populating posts with images #4

Merged
merged 1 commit into from Apr 22, 2021
Merged

Conversation

gschlager
Copy link
Member

This adds the new include_images_in_posts setting to dev.yml (disabled by default). If it's enabled some posts will contain images from https://picsum.photos/. The images get cached locally to speed up subsequent calls of dev:populate.

It also moves redis-cli flushall to the beginning of the dev:populate rake task. Otherwise it would delete jobs from the Sidekiq queue that are required for processing new posts. But it deletes the UserEmail jobs in order to prevent lots of errors when mailcatcher isn't running.

This adds the new `include_images_in_posts` setting to `dev.yml` (disabled by default). If it's enabled some posts will contain images from https://picsum.photos/. The images get cached locally to speed up subsequent calls of `dev:populate`.

It also moves `redis-cli flushall` to the beginning of the `dev:populate` rake task. Otherwise it would delete jobs from the Sidekiq queue that are required for processing new posts. But it deletes the `UserEmail` jobs in order to prevent lots of errors when mailcatcher isn't running.
@gschlager gschlager merged commit c9903d3 into main Apr 22, 2021
@gschlager gschlager deleted the images branch April 22, 2021 11:31
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
1 participant