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

Disable cache #269

Closed
e-belair opened this issue Feb 15, 2017 · 8 comments
Closed

Disable cache #269

e-belair opened this issue Feb 15, 2017 · 8 comments

Comments

@e-belair
Copy link
Contributor

How i can disable cache with ZfcDatagrid?

@ThaDafinser
Copy link
Owner

@manuscle i'm afraid you cant - otherwise the export won't work anymore (PDF/Excel).

But if you don't use export, you could at least use the Memory adapter
https://github.com/zendframework/zend-cache/blob/release-2.7.2/src/Storage/Adapter/Memory.php

I haven't found a null adapter yet, like it's provided at Doctrine Cache
https://github.com/doctrine/cache/blob/master/lib/Doctrine/Common/Cache/VoidCache.php

@kokspflanze
Copy link
Collaborator

you can also disable the export function, i think than was the cache disabled too.

@e-belair
Copy link
Contributor Author

e-belair commented Apr 19, 2017

ZfcDatagrid should let users choose if they want to use cache or not. Some of custom features are not "cacheable" and make App throwing an exception.

@ThaDafinser
Copy link
Owner

You can "disable" the cache by using the Memory or BlackHole cache.
https://github.com/zendframework/zend-cache/blob/master/src/Storage/Adapter/BlackHole.php
https://github.com/zendframework/zend-cache/blob/master/src/Storage/Adapter/Memory.php

What kind of features do not work?

@e-belair
Copy link
Contributor Author

I try to use Memory cache but i get an error when i try to export in phpExcel: 'Sort conditions from cache are missing!'
When i back to FileSystem cache i get the same error.

@ThaDafinser
Copy link
Owner

@manuscle what version do you use?
This (should be) resolved with https://github.com/ThaDafinser/ZfcDatagrid/pull/197/files

This message is not anymore in the code.

@e-belair
Copy link
Contributor Author

Oh sorry i have to update ZF first, that's why i don't have the latest ZfcDatagrid ...

@ThaDafinser
Copy link
Owner

This issue was moved to zfc-datagrid/zfc-datagrid#34

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

3 participants