|||
  1. If a Job implements ShouldQueue the Job will be automatically added to the queue (as do both Shopify Statamic and Statamic Peak|Peak Social Image Generation (class ImportAllProductsJob implements ShouldQueue )
  2. Jobs are added to the schedule within app/Console/Kernel.phpschedule(), e.g.
protected function schedule(Schedule $schedule) { 
    $schedule->command('shopify:import:all')->everyFiveMinutes(); 
}
  1. The .env in Forge must be configured to use redis instead of sync as both QUEUE_CONNECTION and QUEUE_DRIVER:
QUEUE_CONNECTION=redis
QUEUE_DRIVER=redis
  1. A cronjob needs to call the artisan scheduler using scheduler:run , e.g. php /home/forge/stage.mysite.klick.re/artisan schedule:run
Up next Setup Statamic Static Caching What Statamic’s SAVE_CACHED_IMAGES really does I think I got SAVE_CACHED_IMAGES in Statamic wrong the whole time. I thought it’s about whether Glide-generated images are kept when clearing
Latest posts Back to MyMind Sending Articles from Feedbin to Readwise Reader In Praise of Sublime App Why I Ended Up Using Todoist Yet Again Pros and Cons of Reflect Notes App A Love Letter to Sublime Internet Lazy.so is an amazing tool. Here's why I don't keep it Carl Sagan has shown the absurdity of not acting against climate change back in 1990 A success message that communicates the opposite of success Epomaker TH80 Pro Polyamor, aber mit PKM apps 🫣 Ironie, die Fabi Rommel Helft der Natur Tiny Garden Paradise Schwiegerfuchs Same Vibe Tailwind and Web Craftsmanship Buttons with CSS Expand Basic Markdown Formatting in Apple Notes Cannot Divide by Zero in Peak Picture Partial Applying a Growth Mindset (Doodle) Using the AVIF format for CSS background images Workaround for Email Validation Issue in Statamic A First Quick Look at Cosmos.so – and Why I'll Stick with MyMind Install a Starter Kit from local repo to get the latest Peak working in Statamic 4 beta Set sensible validations for Statamic image uploads Render first heading inside Statamic Page Builder as `h1` My PKM App Stack for 2023 Favorite apps in recent weeks: mymind & Craft First List Item inside CSS Multi Column Layout is offset