system/helpers/expires.php
Class: expires_Core
class expires_Core
Controls headers that effect client caching of pages
Methods
expires_Core :: set
public static function set
Sets the amount of time before a page expires
Parameters:
- integer seconds
- (int 60) Seconds before the page expires
Return: boolean
expires_Core :: check
public static function check
Checks to see if a page should be updated or send Not Modified status
Parameters:
- integer seconds
- (int 60) Seconds added to the modified time received to calculate what should be sent
Return: bool FALSE when the request needs to be updated
expires_Core :: check_headers
public static function check_headers
Check headers already created to not step on download or Img_lib's feet
Return: boolean
expires_Core :: prevent_output
public static function prevent_output
Prevent any output from being displayed. Executed during system.display.
Return: void