I heard that a big part of SEO is keeping your site up to date. The more often and recently the site/page was updated, the more likely your site was to get pushed to the top of search results.
That makes sense. After all, nobody wants to visit a site with out of date information and possibly dead links. But what about sites that serve dynamic content (such as stuff from a database) but the content of the .php or .aspx files never or rarely change?
My theory is that actually it will count because web crawlers don't read the code, they read the served content, but as I'm not a seasoned web developer or an SEO specialist I'm here to see if someone could confirm what the deal is, and if there are implications to be aware of, what are they?