Welcome Guest, Not a member yet? Register   Sign In
Multiple Resource Loading in CI
#1

[eluser]dblackherod[/eluser]
CI is quite amazing during application developments using PHP. However one thing I have noticed over the years using this framework is its resource loading concept. A quick illustration would suffice;

1. increase the log threshold in APPPATH . config/config.php to 4.
2. refresh a page in your app.
3. observe the contents in APPPATH . logs/<System-Date>.php

What you will find my friend is a repetition of controllers, models, libraries and helpers loaded by CI; infact, the more a page is requested in CI, the more the same resources are loaded repeatedly. The CI guide also mentions that when the database library is autoloaded, same library will be called with every page load.

I am thinking there's got to be a way to cache resources loaded and simply reuse them on subsequent requests.

Any thoughts on this proposition and how to begin?.


Messages In This Thread
Multiple Resource Loading in CI - by El Forum - 10-03-2012, 10:27 AM
Multiple Resource Loading in CI - by El Forum - 10-03-2012, 01:22 PM
Multiple Resource Loading in CI - by El Forum - 10-03-2012, 09:54 PM
Multiple Resource Loading in CI - by El Forum - 10-05-2012, 09:24 AM



Theme © iAndrew 2016 - Forum software by © MyBB