04 december 2016
there was an upgrade and ttbp still works! praise the tildes.
i am reaping the consequences of my past self's sloth, because with nearly 600 entries on ttbp, it now takes around 10-11 seconds to load the global feed. so, here are some solutions i'm considering:
set a rolling cutoff date for how far back it checks for entries (since entry date is encoded in filename, this should be fairly fast). DOWNSIDE: what if no one posts for a long period of time? should the global feed display only posts within the last, say, week?
whenever someone posts, queue that post onto a file that lists the 10 most recent posts; the global feed reads this list instead of trying to generate one from scratch. DOWNSIDE: this excludes people who might edit/post from outside of the ttbp interface
make a cron job that cruises through all the entry directories and generate a list of the most recent posts; combine this with the above option. this could be a way to catch posts that fall through the cracks.
thoughts/ideas appreciated!
i've also opened this as a github issue, which might be a better venue to discuss this.