Skip to content
Snippets Groups Projects

Add hook to better handle file refreshes for cached OPIC images

Merged Michael Lee requested to merge lee5151 into main

This hook will replace the default cron refresh for Imagecache External that simply refreshes all images after a day. This hook will do the following:

  • Checks to see if opic.osu.edu is live and will not attempt a refresh if it is not
  • Checks if a file is broken. If it is, it will attempt to refresh immediately
  • If image is NOT broken, it will attempt to refresh images that are older than 24 hours within a small window (3AM to 5AM Eastern). This is to avoid a big refresh during peak hours. Refreshes will happen alongside the Imagecache Render custom cron job that runs during this window.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading