Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
how to clear ORM's cache
  • In an action, I have a call to a method in a model which effects a LOT of related fields across 5 tables. Now I need to clear the cache of the ORM and make a fresh query to retrieve a simpler object ..which I can then json_encode(after a to_array) and send to the client. (current query's result includes the previously cached relations which results in a object so big that it can't be json encoded .. server runs out of memory :O )
    Anyone got any idea how i do that ___SOLUTION__ : extend Orm\Model and make methods to clear various cached stuff

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!