ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:userguide:learn_caching:disk_caching

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
v5:userguide:learn_caching:disk_caching [2016/03/29 00:43] – [Disk Based Caching] mnewnhamv5:userguide:learn_caching:disk_caching [2016/03/29 01:08] (current) – [Default Cache Secs] mnewnham
Line 16: Line 16:
 ===== Configuration ===== ===== Configuration =====
 The directory where the queries are saved is controlled by the variable [[v5:reference:adodb_cache_dir|$ADODB_CACHE_DIR]] The directory where the queries are saved is controlled by the variable [[v5:reference:adodb_cache_dir|$ADODB_CACHE_DIR]]
-===== 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 
- 
 <code php> <code php>
 /* /*
- connection object assumed+ Set the value of the cache directory before establishing a connection
  */  */
 $ADODB_CACHE_DIR = 'd:/queries'; $ADODB_CACHE_DIR = 'd:/queries';
-$db->cacheSecs   = 6000; 
 </code> </code>
v5/userguide/learn_caching/disk_caching.txt · Last modified: 2016/03/29 01:08 by mnewnham