Public Member Functions | |
__construct (&$db) | |
check_path ($path= '') | |
read ($sql) | |
write ($sql, $object) | |
delete ($segment_one= '', $segment_two= '') | |
delete_all () | |
Data Fields | |
$CI | |
$db | |
__construct | ( | & | $db) |
Constructor
Grabs the CI super object instance so we can access it.
check_path | ( | $path = '' ) |
Set Cache Directory Path
public
string | the path to the cache directory |
delete | ( | $segment_one = '' , |
|
$segment_two = '' |
|||
) |
Delete cache files within a particular directory
public
delete_all | ( | ) |
Delete all existing cache files
public
read | ( | $sql) |
Retrieve a cached query
The URI being requested will become the name of the cache sub-folder. An MD5 hash of the SQL statement will become the cache file name
public
write | ( | $sql, | |
$object | |||
) |
Write a query to a cache file
public