Project:Memcache API and Integration
Version:6.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

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.

Comments

#1

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

@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

That's what this patch does.

#4

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

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

#6

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

#7

Version:5.x-1.x-dev» 6.x-1.x-dev

Fastpath still exists in D6, so this might still be valid.

Also "I think demoing a Drupal site that can serve anons without a db would be soooo coool.", heh, you can serve authenticated pages from D7 without a db now (or at least you could a year ago).

nobody click here