Fixed Cache system, generate now correcly by config file content and template content