3 ms·
> "live pages" equals "lots of hits to the database" Is it common for people to set up a database backed website without caching? The framework I'm most famili
by leephillips 12y ago
> "live pages" equals "lots of hits to the database"
Is it common for people to set up a database backed website without caching? The framework I'm most familiar with, Django, will cache the results of database queries, so if, say, an article on the site becomes popular the database is hit once, and thousands of views are served from the cache.
Edit: Jweb_Guru, thanks for that clarification.
- smackfu 12y agoWordpress uses plugins for caching, last I checked.
- Jweb_Guru 12y agoThat isn't true by default. Django will cache queries the first time they're executed for a particular request, but not in general for all requests. You can opt-in to caching pages thereafter in something like memcached, but that would be extremely questionable default behavior and a great way to cause consistency bugs.