Welcome Guest, Not a member yet? Register   Sign In
Partial web cache - is any simple way?
#1

[eluser]H. Bernaciak[/eluser]
Hi,

The standard web caching class allow to cache only the whole site, but my website i much more dyamic and lots of elements depands on user login status etc., so I would like to cache only some parts of the generated website.
is there any simple way to do it?
i mean about sth like:

$this->output->cache_start();
$this->output->cache_stop();

Thanks in advance for help.
#2

[eluser]Jamie Rumbelow[/eluser]
Check out Phil Sturgeon's cache library. It can't do exactly what you're looking for but that could be very easily written, and it's an easy to use, flexible little library that I like a lot.

Jamie
#3

[eluser]H. Bernaciak[/eluser]
thx but its not exactly what I need...

maybe someone got sth else?
#4

[eluser]gullah[/eluser]
check out memcached. It's an additional program so if you are on shared hosting it may not be a solution. But you can cache in output for any number of seconds.
#5

[eluser]webgr[/eluser]
we use Zend Framework Cache library which is very flexible.

Since it is very easy to integrate individual libraries to Codeigniter it is a solution you could investigate.
#6

[eluser]H. Bernaciak[/eluser]
[quote author="webgr" date="1260215865"]we use Zend Framework Cache library which is very flexible.

Since it is very easy to integrate individual libraries to Codeigniter it is a solution you could investigate.[/quote]

got u any example about this integration?
#7

[eluser]webgr[/eluser]
This is a good approach IMHO

http://www.beyondcoding.com/2008/02/21/u...deigniter/
#8

[eluser]Christophe Sautot[/eluser]
Also, have a look at Elliot Haughin's Multicache library if you would like to use Memcache for caching your items. It has simple get, set, and replace functions for caching items.

http://www.haughin.com/code/multicache/




Theme © iAndrew 2016 - Forum software by © MyBB