Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

Cache ModelsMetadata

Since APC is out of the loop when you are using opcache, is there any way to cache the meta data to memcache instead of files?

http://docs.phalconphp.com/en/latest/reference/models.html

I've search but cant find any examples or anybody talking about it

Thanks



5.5k

You can still use the apcu extension: http://pecl.php.net/package/APCu



11.5k

Thanks vlad4800 , I know about APCu but I was hoping for a memcache or redis solution ;)



647
Accepted
answer

You can check the Phalcon Incubator repository, there is some different implementations:

https://github.com/phalcon/incubator/tree/master/Library/Phalcon/Mvc/Model/MetaData

You can use composer to add it to your project



11.5k

Hey Anderson, already using incubator, didn't see the metadata cache layer, thanks I'll take a look