How to use var/modules folder properly?

Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2466
Posted: Tue, 2012-05-15 17:37

I want to place dynamically generated JS file in var/modules/colorbox and then include it with the page.

Today I am placing it in /g3/modules/colorbox/js and it works properly since module folder tree is registered properly.
but I do not think it is done by default for var/modules tree.

while I can direct reference from the page, file would not be cached properly

How to use VAR folder properly?

Serge
_____________________________________________
Photo Gallery | GreyDragon Theme | Follow on Twitter