We should implement page_cache_fastpath

robertDouglass - February 6, 2008 - 19:07
Project:Memcache API and Integration
Version:5.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

From Pro Drupal Development

Early Page Cache
In situations requiring a high level of scalability, a caching system may need to be invoked before a database connection is even attempted. The early page cache phase lets you include a PHP file containing a function called page_cache_fastpath(), which takes over and returns content to the browser. The early page cache is enabled by setting the page_cache_fastpath variable to TRUE, and the file to be included is defined by setting the cache_inc variable to the file’s path.

With this and the new sessions code we could run Drupal without any db queries, I think.

#1

lyricnz - February 9, 2008 - 23:16

I was thinking about this the other day (as I was putting fastpath_fscache on some server). You're talking about anonymous users here?

#2

robertDouglass - February 11, 2008 - 18:14

@lyricnz: yes... exclusively for serving from cache_page. I think demoing a Drupal site that can serve anons without a db would be soooo coool.

#3

Jeremy - October 16, 2008 - 23:04

That's what this patch does.

#4

Omeyocan - December 15, 2008 - 19:09

Hello,

a few days ago, I posted some code here:

http://drupal.org/node/230101#comment-1144721

didn't know about this issue being allready posted.

regards
Jonas

#5

andypost - December 21, 2008 - 17:46

This is already realized in cacherouter module. So just copy and join forces!

#6

Jonah Ellison - July 13, 2009 - 05:27

If this is ever implemented, please wrap the code with if (!function_exists('page_cache_fastpath')) { ... } so the Authcache module remains compatible with Memcache.

 
 

Drupal is a registered trademark of Dries Buytaert.