Welcome Guest, Not a member yet? Register   Sign In
Persist an object and its methods
#11

[eluser]adamp1[/eluser]
Actually there is a way to do this, and that would be to cache the object using a library on the forum. (I forgot where). Unless this class requires huge amounts of resources to create there isn't much point in doing this since getting the data from the file will probably take longer.
#12

[eluser]adamp1[/eluser]
Here it is http://ellislab.com/forums/viewthread/57117, cache objects
#13

[eluser]Sam Dark[/eluser]
Another approach is try using memcached ( http://www.danga.com/memcached/ ). This way you can achieve true stateful nature within PHP.




Theme © iAndrew 2016 - Forum software by © MyBB