I read the userguide about caching and it says you can only cache “stuff” that is being served to a view, from within a controller.
Now i have the following function:
1) Loads a txt file (150 kb .txt file)
2) makes a multidimensional array from all the data
3) my site fetches info from this array
This array doesn’t need to be loaded every time a user visits a page that utilizes this array, it should become available continuesly (the 150kb .txt file rarely gets updated (every 2 months or so)).
How can I have this array globally available without parsing all the contents to the controller every time user visits that page?
Can I use caching for this puprose?
Erik
