We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

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?

https://docs.phalcon.io/en/latest/reference/models.html

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

Thanks



8.6k

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



16.4k

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



843
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



16.4k

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