Log in

View Full Version : cache system for templates


Bhuwan
02-09-2006, 04:49 PM
Can someone explain how the cache system for templates works? :)

Marky
02-09-2006, 05:41 PM
If your asking how to cache a template...
You must - make a plugin with the details shown below:

Product: YOURPRODUCTHERE (Or vBulletin)
Hook Location: cache_templates
Title: Anythinghere - Cache Templates
PHP: $globaltemplates[] = 'thetemplatethatneedscachehere';

Hope this helps :)

Thanks,

Marky

Bhuwan
02-09-2006, 07:20 PM
my question sint how to do it, it is how it works exactly :)

Paul M
02-09-2006, 07:29 PM
It loads the templates into an array.

Bhuwan
02-09-2006, 11:04 PM
It loads the templates into an array.

So are those values valid for a session? or how does it work exactly?

Aren't arrays available only for the scope the program they are in?

example: if you cache a template into an array for index.php, wouldn't it no longer be valid if you moved to newreply.php?

I guess I am not understanding exactly how its stored for future use.