Welcome Guest, Not a member yet? Register   Sign In
Small question regarding caching
#1

[eluser]Las3r[/eluser]
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


Messages In This Thread
Small question regarding caching - by El Forum - 03-05-2009, 04:53 PM
Small question regarding caching - by El Forum - 03-05-2009, 05:25 PM
Small question regarding caching - by El Forum - 03-05-2009, 05:53 PM
Small question regarding caching - by El Forum - 04-06-2009, 04:12 AM
Small question regarding caching - by El Forum - 04-06-2009, 06:03 AM



Theme © iAndrew 2016 - Forum software by © MyBB