Class Smarty_CacheResource_Mysql

extends Smarty_CacheResource_Custom

MySQL CacheResource CacheResource Implementation based on the Custom API to use MySQL as the storage resource for Smarty's output caching. Table definition:

CREATE TABLE IF NOT EXISTS `output_cache` (
  `id` CHAR(40) NOT NULL COMMENT 'sha1 hash',
  `name` VARCHAR(250) NOT NULL,
  `cache_id` VARCHAR(250) NULL DEFAULT NULL,
  `compile_id` VARCHAR(250) NULL DEFAULT NULL,
  `modified` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `content` LONGTEXT NOT NULL,
  PRIMARY KEY (`id`),
  INDEX(`name`),
  INDEX(`cache_id`),
  INDEX(`compile_id`),
  INDEX(`modified`)
) ENGINE = InnoDB;
Methods
Methods inherited from Smarty_CacheResource_Custom
populate(), populateTimestamp(), process(), writeCachedContent(), readCachedContent(), clearAll(), clear(), hasLock(), acquireLock(), releaseLock()
Methods inherited from Smarty_CacheResource
getCachedContent(), locked(), load()
Properties
Properties inherited from Smarty_CacheResource
$sysplugins