Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compatibility with Doctrine's MemcachedCache #193

Open
karlbuckland opened this issue Jan 22, 2020 · 0 comments
Open

Compatibility with Doctrine's MemcachedCache #193

karlbuckland opened this issue Jan 22, 2020 · 0 comments

Comments

@karlbuckland
Copy link

It looks like the keys generated by FindObjectsQueryFactory in the compute() method (for example) contain spaces in the filterString and therefore the cache $key, which Doctrine's MemcachedCache class does not allow:

https://github.com/doctrine/cache/blob/master/lib/Doctrine/Common/Cache/MemcachedCache.php

See the validateCacheId() method.

Sidenote: I am triggering this problem by performing a $this->find() method call within a Dao object, such as:
return $this->find("user_agent IN (:user_agent)", [ 'user_agent' => implode(',', $user_agent) ]);

In this example, this part of the query ends up in the filterString ("user_agent IN (:user_agent)") and that is where the spaces are.

When tested with ArrayCache or ApcuCache it works fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant