Cache bug fixed and template controller server-side