Hey everyone, I’m trying to find a work around for a performance problem
I’ve been having.
I have a class that builds paths (among other things) dynamically to
many files and folders depending on what sets of information the user
accesses. Once built, this class instantiation contains all the
information necessary for several pages (controllers/views) to operate.
However at times it can take up to 10 seconds to process.
It could be incredibly time consuming to re-instantiate the class every
time I load any related sub-views/controllers.
The information contained in the instantiation is too large to fit into
a session variable and too complex to be passed back in a query string.
Also I should note that it is different for each user, so it can’t be
used as some sort of program-wide global variable.
Is there any way around this situation? Is there some way to keep the
instantiated class alive so it can be used in subsequent actions? Any
help would greatly be appreciated!
Thanks!