spotorm / spot2

Spot v2.x DataMapper built on top of Doctrine's Database Abstraction Layer

Home Page:http://phpdatamapper.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Disable query caching

stojanovic-nikola opened this issue · comments

Is it possible and how, to tell mapper not to cache query?

$mapper->all(); // get data
$mapper->all(); // get fresh data again

Which cache do you mean? AFAIK Spot does not have a query cache.

There is currently no caching:
https://github.com/spotorm/spot2/blob/master/lib/Query.php#L630

Maybe your query is already executed and you just have the resulting collection in your variable?