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

Is there a way to save shared $variables in memory with Phalcon

Is there a way to save shared $variables in memory so I don't have make this variable for each script execution,

Btw, I wont to save in the session...



125.8k
Accepted
answer

Well you put this question in the "Cache" category, so you're on the right track. The docs have a section about caching: https://docs.phalcon.io/en/latest/reference/cache.html