ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:userguide:local_cache

This is an old revision of the document!


Caching Result Sets

Description

System Requirements

Default Cache Secs

The parameter $cacheSecs sets the default value of the time in seconds that cached queries are saved. If not set then the value is 3600. It can be set via either a normal connection object or a DSN type connection configuration.

This default value can be overridden on a query by query basis

/*
 * A connection object assumed
 */
$db->cacheSecs = 6000;
v5/userguide/local_cache.1438532129.txt.gz · Last modified: 2017/04/21 11:39 (external edit)