Automate the generation of the static pages. #144

Open
opened 2023-07-10 15:20:14 +00:00 by ken_fallon · 2 comments
Owner

The static pages need to be generated at least every six hours, or as soon as substantial changes have been made to the site.

The static pages need to be generated at least every six hours, or as soon as substantial changes have been made to the site.
Owner

Not sure if anything has been implemented yet, but my thoughts:

Simple method - cron job that runs site-generator --all every 6 hours

More complex - Update individual pages. Need to define what triggers the update and what is updated

  • New day will publish the latest episode which affects the following pages:
    • index
    • correspondent
    • correspondents (if a new correspondent)
    • episode -- both current episode and previous episode
    • episodes
    • tags
    • series (if part of a series)
    • series_episode (if part of a series)
    • RSS feeds once they are statically generated
  • New comment on an episode
    • episode
    • index (if episode is within the Latest Episodes time frame)
  • New show
    • index (update if days until show could be released is within time frame)
    • RSS feeds that contain future episodes once they are statically generated

Others I may not have contemplated.

I envision an update tool that is run either manually or periodically that queries the database and generates a list of pages that need updated in the form of
the site-generator arguments and then runs the site-generator with them.

Not sure if anything has been implemented yet, but my thoughts: Simple method - cron job that runs ```site-generator --all``` every 6 hours More complex - Update individual pages. Need to define what triggers the update and what is updated - New day will publish the latest episode which affects the following pages: * index * correspondent * correspondents (if a new correspondent) * episode -- both current episode and previous episode * episodes * tags * series (if part of a series) * series_episode (if part of a series) * RSS feeds once they are statically generated - New comment on an episode * episode * index (if episode is within the Latest Episodes time frame) - New show * index (update if days until show could be released is within time frame) * RSS feeds that contain future episodes once they are statically generated Others I may not have contemplated. I envision an update tool that is run either manually or periodically that queries the database and generates a list of pages that need updated in the form of the site-generator arguments and then runs the site-generator with them.
Author
Owner

I am currently running a job that updates the code, downloads the db, and then does a update all every 3 hours.

It's working OK but once an hour might be better so that comments get updated sooner.

I am currently running a job that updates the code, downloads the db, and then does a update all every 3 hours. It's working OK but once an hour might be better so that comments get updated sooner.
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: HPR/hpr_generator#144
No description provided.