'Change the timestamp of parent DocType if the current one is a child to clear caches.'

def change_modified_of_parent(self):

    if frappe.flags.in_import:
        return
    parent_list = frappe.db.sql(u'SELECT    parent\n DCTB  DCTB  DCTB from    tabDocField    where    fieldtype="Table"    and    options=%s', self.name)
    for p in parent_list:
        frappe.db.sql(u'UPDATE    tabDocType    SET    modified=%s    WHERE    `name`=%s', (now(), p[0]))
