Cache lookup values for cacheLookups seconds in the $ADODB_CACHE_DIR directory. Default: PhpLens uses the ADODB database library internally. ADODB has the ability to cache queries and recordsets in a directory defined by the variable $ADODB_CACHE_DIR. You should define this constant at the top of your script.
This property can speed up phpLens significantly by reducing queries to the database.Syntax
$ADODB_CACHE_DIR='/path/to/dir';
include('phplens.inc.php');
$conn = NewADOConnection('mysql');
$conn->PConnect('server','user','pwd','db');
$sql = 'select * from table';
$lens = new phpLens('someid',$conn,$sql);
$lens->cacheLookups = 120;
$lens->Render(); Basic:Yes Advanced/Enterprise:Yes DynamicEdit:Yes [Version 1.0]
|