Welcome Guest, Not a member yet? Register   Sign In
Partial Cache Question
#1

[eluser]Glazz[/eluser]
Hello,

I'm wanting to cache some pages, to speed up my webpage, but the problem is that i have some dynamic content to be shown, i've searched on the forums and i found some topics regarding this but i get a little confused on what method to use...

The Phil Sturgeon codeigniter-cache library seems good, didnt tried it out yet..

What do you guys recomend to do ?

Thank you =)
#2

[eluser]veledrom[/eluser]
Did I understand correctly?

@RogierB - To avoid fetching irrelevant data from someone else's cache file (just because having same name for the cache file), I should make my cache file name unique because everyone's cache files are stored in same memory.
#3

[eluser]veledrom[/eluser]
I was looking for what exactly Glazz wanted. I implemented Phil's code and I can confirm that it works perfectly fine. Also thanks to rogierb and pickupman to help me understanding the use of it in such case.
#4

[eluser]Peter Drinnan[/eluser]
Just a minor correction for Pickupman's code. Possibly Phil updated his library but it is minor. Just need to flip the variable positions.

Code:
$this->cache->write('footer', $data['parital']);

becomes

Code:
$this->cache->write($data['parital'], 'footer');

Great library btw. In my admin interface it is shaved 0.2 seconds off my load times.




Theme © iAndrew 2016 - Forum software by © MyBB