导航

2013年10月8日

摘要: 页面缓存是什么意思?有些页面浏览量非常大,而且与状态无关,这类页面就可以使用页面缓存技术。在页面第一次请求完毕以后,将响应结果保存起来。下一次再请求同一页面时,就不需要从头到尾再执行一遍,只需要将第一次执行的响应结果获取出来,直接返回给使用者就行了。什么样的页面请求可以缓存?Drupal使用函数drupal_page_is_cacheable()区分哪些请求可以缓存:function drupal_page_is_cacheable($allow_caching = NULL) { $allow_caching_static = &drupal_static(__FUNCTION__, 阅读全文

posted @ 2013-10-08 16:55 eastson 阅读(986) 评论(0) 推荐(0) 编辑

摘要: 配置是Drupal启动过程中的第一个阶段,通过函数_drupal_bootstrap_configuration()实现:function _drupal_bootstrap_configuration() { set_error_handler('_drupal_error_handler'); set_exception_handler('_drupal_exception_handler'); drupal_environment_initialize(); timer_start('page'); drupal_settings_init 阅读全文

posted @ 2013-10-08 11:19 eastson 阅读(588) 评论(0) 推荐(0) 编辑