Public Member Functions | |
| CI_DB_Cache (&$db) | |
| check_path ($path= '') | |
| read ($sql) | |
| write ($sql, $object) | |
| delete ($segment_one= '', $segment_two= '') | |
| delete_all () | |
Public Attributes | |
| $CI | |
| $db | |
| CI_DB_Cache::check_path | ( | $ | path = '' |
) |
Set Cache Directory Path
public
| string | the path to the cache directory |
| CI_DB_Cache::CI_DB_Cache | ( | &$ | db | ) |
Constructor
Grabs the CI super object instance so we can access it.
| CI_DB_Cache::delete | ( | $ | segment_one = '', |
|
| $ | segment_two = '' | |||
| ) |
Delete cache files within a particular directory
public
| CI_DB_Cache::delete_all | ( | ) |
Delete all existing cache files
public
| CI_DB_Cache::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
| CI_DB_Cache::write | ( | $ | sql, | |
| $ | object | |||
| ) |
Write a query to a cache file
public
| CI_DB_Cache::$CI |
| CI_DB_Cache::$db |
1.5.7.1