Back

Programming
cacheLookups
Cache lookup values for cacheLookups seconds in the $ADODB_CACHE_DIR directory. Default: `0` 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:No Advanced/Enterprise:Yes DynamicEdit:No [Version 1.0]