Topic: How to pre-cache an array for an often called action ?
Hi, i have this tricky problem:
In my view i trigger an action very often before submit(cant change this).
The action reads a file and creates an array. Then after some computing it sends some data back to the view. (view -> action -> reads_file -> creates some data aray -computes -> send data back)
The data in the file changes very rarely. Maybe once a month. Its obvious that its redundant to read the file and create the dataarray on every :action call.
How can I cache it?
Last edited by rambus (2007-07-26 16:31:11)