Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Outside of using a CDN, just simply using static files gives you caching for free at the file system level. Linux automatically keeps files in RAM when they’re used.


It's not just static files but database calls to construct pages


Hmm? Generating static pages avoids database calls to construct pages. You do it once when you publish/edit a post. Then every reader never makes a database call again.


I think we're arguing the same point, via different means.


Just to help with future understanding of how threads go off the rails: eatonphil added a comment about using static files instead of dynamic, then your reply was “and caching”, meaning “in addition to static files, also use caching”. At this point in the conversation, we’re talking about only static files with caching, so it doesn’t really follow that you’re bringing up “database connections” again, since that’s already been excluded in this thread.


I should have put caching also helps if you can't produce static stites via the application (i.e. some shopping cart software), not just wordpress.


Ah, now I understand what you meant.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: