v5:userguide:learn_caching:adodb_coding
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
v5:userguide:learn_caching:adodb_coding [2016/03/29 01:01] – mnewnham | v5:userguide:learn_caching:adodb_coding [2016/03/29 04:56] (current) – mnewnham | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | + | <- v5: | |
- | + | ||
- | <- v5: | + | |
~~NOTOC~~ | ~~NOTOC~~ | ||
====== Using Cached Queries ====== | ====== Using Cached Queries ====== | ||
Line 16: | Line 14: | ||
*/ | */ | ||
$sql = ' | $sql = ' | ||
- | $db->cacheExecute(2400, | + | $db->cacheGetAssoc(2400, |
- | + | ||
- | + | ||
</ | </ | ||
- | ===== Using Debug Mode ===== | ||
- | The size of query results that can be cached by the memcached server is limited by server configuration. The default is quite small. If the query is too large, and [[v5: | ||
- | |||
- | |||
- | 3849805e4e026b9e7c485999a24a95c6 cache failure: Item with such key doesn' | ||
- | (this is a notice and not an error) | ||
- | -----< | ||
- | | ||
- | (mysqli): SELECT * FROM employees | ||
- | | ||
- | -----< | ||
- | Notice: MemcachePool:: | ||
- | SERVER_ERROR object too large for cache | ||
- | (3) in C: | ||
- | Failed to save data at the memcached server! | ||
- | | ||
- | Cache write error | ||
- | | ||
- | PHP Notice: | ||
- | SERVER_ERROR object too large for cache (3) | ||
- | in C: | ||
- | | ||
- | ADOdb currently has no mechanism for splitting large queries into smaller chunks. | ||
- | |||
- | {{tag> | + | The response from the cache functions is exactly the same as the normal functions. |
v5/userguide/learn_caching/adodb_coding.1459206111.txt.gz · Last modified: 2017/04/21 11:40 (external edit)