Hi, I was thinking the same thing a couple of times already. For my webpages I use PEARs CacheLite. But you don’t need to change wordpress to dump its output into variables, use phps’ caching functions. Here is an example of how I do it. This is the the top and the bottom of a webpage:
$cache"bands";
$cache = new Cache_Lite($cacheOptions);
if ($data = $cache->get($cacheId)) {
die($data);
}
ob_start();
Oh, a wordpress bug striked in my post above. WordPress always removes “id equals to” code from comments. The first line should read
$ c o d e I d = ' b a n d s ';
Interesting. I should look into their version. However, your hack would require a new application to be installed. I guess I am trying to do this inside wordpress. Though I am sure there are lots of lessons to be learnt from cache_Lite!
Thanks for the suggestion!
An avid fan of business, education, technology and finance. I lead a lean, highly focussed and capable team of Java Back End developers and Front End developers through a maze of complex software wizardry to fulfill the web maintenance needs of a large chemical manufacturer. As per Myers-Briggs Personality Types, I am an ESTJ. I pride in a project completed on time and according to plan. My hobbies include all kinds of technology, anything that I can taste and anything that goes fast or flies in the air. I like to read business books and comics in my spare time.
Hi, I was thinking the same thing a couple of times already. For my webpages I use PEARs CacheLite. But you don’t need to change wordpress to dump its output into variables, use phps’ caching functions. Here is an example of how I do it. This is the the top and the bottom of a webpage:
$cache"bands";
$cache = new Cache_Lite($cacheOptions);
if ($data = $cache->get($cacheId)) {
die($data);
}
ob_start();
// put whatever php/html here
$cache->save(ob_get_contents());
ob_flush();
Hope this helps…
Oh, a wordpress bug striked in my post above. WordPress always removes “id equals to” code from comments. The first line should read
$ c o d e I d = ' b a n d s ';
Interesting. I should look into their version. However, your hack would require a new application to be installed. I guess I am trying to do this inside wordpress. Though I am sure there are lots of lessons to be learnt from cache_Lite!
Thanks for the suggestion!
hey, is your cache plugin available?