- Class name: Smarty_CacheResource_Mysql
- Parent class: Smarty_CacheResource_Custom
- Source: classes/SmartyCacheResourceMysql.php line 29
integer Smarty_CacheResource_Mysql::delete(string $name, string $cache_id, string $compile_id, integer|null $exp_time)
Delete content from cache
- Visibility: protected
- Source: classes/SmartyCacheResourceMysql.php line 105
- $name string - template name
- $cache_id string - cache id
- $compile_id string - compile id
- $exp_time integer|null - seconds till expiration or null
void Smarty_CacheResource_Mysql::fetch(string $id, string $name, string $cache_id, string $compile_id, string $content, integer $mtime)
fetch cached content and its modification time from data source
- Visibility: protected
- Source: classes/SmartyCacheResourceMysql.php line 42
- $id string - unique cache content identifier
- $name string - template name
- $cache_id string - cache id
- $compile_id string - compile id
- $content string - cached content
- $mtime integer - cache modification timestamp (epoch)
integer|boolean Smarty_CacheResource_Mysql::fetchTimestamp(string $id, string $name, string $cache_id, string $compile_id)
Fetch cached content's modification timestamp from data source
- Visibility: protected
- Source: classes/SmartyCacheResourceMysql.php line 64
- $id string - unique cache content identifier
- $name string - template name
- $cache_id string - cache id
- $compile_id string - compile id
boolean Smarty_CacheResource_Mysql::save(string $id, string $name, string $cache_id, string $compile_id, integer|null $exp_time, string $content)
Save content to cache
- Visibility: protected
- Source: classes/SmartyCacheResourceMysql.php line 82
- $id string - unique cache content identifier
- $name string - template name
- $cache_id string - cache id
- $compile_id string - compile id
- $exp_time integer|null - seconds till expiration time in seconds or null
- $content string - content to cache