[ 3 / biz / cgl / ck / diy / fa / ic / jp / lit / sci / vr / vt ] [ index / top / reports ] [ become a patron ] [ status ]
2023-11: Warosu is now out of extended maintenance.

/vt/ - Virtual Youtubers

Search:


View post   

>> No.13792943 [View]
File: 238 KB, 828x1111, 6BFE79BC-C22B-4366-AA8B-F2959AFE3FB1.jpg [View same] [iqdb] [saucenao] [google]
13792943

>vrabi already buckling
I’ll add this one in the “well intentioned bloke without the required tech know how to make this work on the cheap”.

I’ll soon manage to muster the strength to actually do it. New deadline: Jan 1st, 2022.
Here is a tip if the vrabi bro is around
>the entire site can be static
Just pre render all available endpoints server side and serve static .html files instead of dynamically rendering it every page view.

Set a schedule task that render all pages server side at a fixed interval (let’s say, every minute), set the header for cache on the same interval and refresh the data via XHR if the user doesn’t refresh the page.

Given that there aren’t that many pages to be rendered and that the CCV collection interval is at a set rate (likely every 30 seconds or so) you’ll save a lot of dynamic calls doing that.
Also: for pages where the result won’t change (like pages where every result won’t change, like daily tops of the last) you can just set the cache to infinity and never render it again.

Navigation
View posts[+24][+48][+96]