Class Xyster_Controller_Action_Helper_Cache

Description

Cache control action helper

  • copyright: Copyright (c) 2007-2008 Irrational Logic (http://irrationallogic.net)
  • license: New BSD License

Located in /Controller/Action/Helper/Cache.php (line 29)

Zend_Controller_Action_Helper_Abstract
   |
   --Xyster_Controller_Action_Helper_Cache
Class Constant Summary
 CACHE_CONTROL_HEADER = 'Cache-Control: private, must-revalidate, max-age=0, pre-check=0'
Method Summary
boolean checkModifiedSince (int $date)
boolean direct (int $date)
string _getGmDate (int $date)
void _lastModified (int $date)
boolean _wasModifiedSince (int $date)
Methods
checkModifiedSince (line 58)

Checks the user's last mod date against the date supplied

All appropriate headers are sent. In the event the page hasn't been modified, the view renderer is disabled through the front controller.

  • access: public
boolean checkModifiedSince (int $date)
  • int $date
direct (line 44)

Checks the user's last mod date against the date supplied

  • access: public
boolean direct (int $date)
  • int $date
_getGmDate (line 74)

Formats a date in GMT syntax suitable for HTTP headers

  • access: protected
string _getGmDate (int $date)
  • int $date
_lastModified (line 84)

Sends cache-control, last-modified, and etag headers

  • access: protected
void _lastModified (int $date)
  • int $date
_wasModifiedSince (line 99)

Checks the date supplied against the if-modified-since header

  • access: protected
boolean _wasModifiedSince (int $date)
  • int $date
Class Constants
CACHE_CONTROL_HEADER = 'Cache-Control: private, must-revalidate, max-age=0, pre-check=0' (line 36)

The cache-control header to send

This header has been tested to work successfully over SSL

Documentation generated on Mon, 19 May 2008 17:07:01 -0400 by phpDocumentor 1.4.2