.

UpfrontCache Class Reference
[Lib]

Reads pages from cache without needing a prior routing process. More...

List of all members.

Static Public Member Functions

static  serve_from_cache (PageData $page_data)
  Try to find page in cache.

Detailed Description

Reads pages from cache without needing a prior routing process.

Author:
Gerd Riesselmann

Definition at line 8 of file upfrontcache.cls.php.


Member Function Documentation

static UpfrontCache::serve_from_cache ( PageData page_data  )  [static]

Try to find page in cache.

If so serves it and exits.

Definition at line 12 of file upfrontcache.cls.php.

00012                                                                      {
00013                 $view = ViewFactory::create_view(IViewFactory::PAGE, $page_data->page_template, $page_data);
00014                 if ($view->is_cached()) {
00015                         $view->render(IView::DISPLAY);
00016                         exit;
00017                 }               
00018         }

The documentation for this class was generated from the following file: