Skip to content

modelsCache not working for hasManyToMany #15374

Answered by quasipickle
gdluck asked this question in Q&A
Discussion options

You must be logged in to vote

Looks like many-to-many relationships aren't cached: https://docs.phalcon.io/4.0/en/db-models-cache#related-records

The solution 6 years ago was to write your own getRelated(): https://forum.phalcon.io/discussion/6208/caching-many-to-many-relation

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by gdluck
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants