empty cache  directory templates_c & fix small php errors