今天就学习课程吧!
今天就开通帐号,24,700 门业界名师课程任您挑!
Installing Memcached memory caching
- [Instructor] We're going to install two different caching systems, but why cache data and objects? In short, you can reuse the results of a complex query or operation instead of redoing the same work over and over again. A best practice when building a PHP application is to use a dedicated, purpose-built caching back end. Why is that? You can't just wave a want and make things faster. Most PHP applications already include caching back ends. The first, most likely, is a relational database such as MySQL. It makes sense in that it's always available, so no additional setup is required. However, a relational database is inefficient as a caching system because a relational database is best suited for relational queries, which the application will already be doing. It's not that a caching query is fast, but if the server is waiting to complete a bunch of small cache look ups, it can't perform a larger, more important query. The other option is the file system, such as a dedicated folder…
随堂练习,边学边练
下载课堂讲义。学练结合,紧跟进度,轻松巩固知识。