to anonymous user
to anonymous user
to logged in user
Cache-Control: public, max-age=21600
// If the client sent a session cookie, a cached copy will only be served
// to that one particular client due to Vary: Cookie. Thus, do not set
// max-age > 0, allowing the page to be cached by external proxies, when a
// session cookie is present unless the Vary header has been replaced or
// unset in hook_boot().
$max_age = !isset($_COOKIE[session_name()]) || isset($hook_boot_headers['vary']) ? variable_get('page_cache_maximum_age', 0) : 0;
$default_headers['Cache-Control'] = 'public, max-age=' . $max_age;
// Entity tag should change if the output changes.
$etag = '"' . $cache->created . '-' . intval($return_compressed) . '"';
header('Etag: ' . $etag);
<!-- Page cached by Boost @ 2013-06-16 02:46:53, expires @ 2013-06-16 05:46:53 -->
nginx: 100,000 requests in 60s
apache: 10,000 requests in 60s
Warm up PHP in every request
Run SQL Query in every needs
Before: 104MB per page
Memory used at: devel_boot()=5.43 MB, devel_shutdown()=104.15 MBAfter: 49MB per pageMemory used at: devel_boot()=2.34 MB, devel_shutdown()=49.58 MB
Before query cache: 2301.12ms
After query cache: 2.49ms
SELECT node.title AS node_title, node.nid AS nid, users_node.name AS users_node_name, users_node.uid AS users_node_uid, flag_counts_node.count AS flag_counts_node_count, node_counter.totalcount AS node_counter_totalcount, node_comment_statistics.comment_count AS node_comment_statistics_comment_count, node.created AS node_created, node.uid AS node_uid, 'node' AS field_data_body_node_entity_type, 'node' AS field_data_field_video_id_node_entity_type, 'node' AS field_data_field_img_status_node_entity_type
FROM
{node} node
LEFT JOIN {flag_counts} flag_counts_node ON node.nid = flag_counts_node.content_id AND flag_counts_node.fid = '1'
INNER JOIN {users} users_node ON node.uid = users_node.uid
INNER JOIN {field_data_field_del_status} field_data_field_del_status_value_0 ON node.nid = field_data_field_del_status_value_0.entity_id AND field_data_field_del_status_value_0.field_del_status_value = '0'
INNER JOIN {node_counter} node_counter ON node.nid = node_counter.nid
INNER JOIN {node_comment_statistics} node_comment_statistics ON node.nid = node_comment_statistics.nid
WHERE (( (node.type IN ('post')) AND( (field_data_field_del_status_value_0.field_del_status_value = '0') )AND (node.status = '1') ))
ORDER BY node_created DESC
LIMIT 30 OFFSET 0
Query Cache Hits = 2800000
Quer Cache Insert = 444400
Hits/(Hits+Inserts) = 86.30%
(permission reason)