ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:userguide:local_cache

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
reference:local_cache [2015/08/02 18:15] mnewnhamv5:userguide:local_cache [2016/01/17 03:42] (current) – ↷ Page moved from v5:reference:local_cache to v5:userguide:local_cache mnewnham
Line 2: Line 2:
 ===== Description ===== ===== Description =====
 ===== System Requirements ===== ===== System Requirements =====
 +The directory where the queries are saved is controlled by the variable [[v5:reference:adodb_cache_dir|$ADODB_CACHE_DIR]]
 ===== Default Cache Secs ===== ===== 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. 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.
Line 12: Line 12:
  * A connection object assumed  * A connection object assumed
  */  */
-$db->cacheSecs = 6000;+$ADODB_CACHE_DIR = 'd:/queries'; 
 +$db->cacheSecs   = 6000;
 </code> </code>
  
 +{{tag>[cache]}}
v5/userguide/local_cache.1438532129.txt.gz · Last modified: 2017/04/21 11:39 (external edit)