From 3161729b91d5f3b974e6946cae9180bf040e9ad6 Mon Sep 17 00:00:00 2001
From: Marco Villegas <marvil07@gmail.com>
Date: Mon, 23 Aug 2010 17:15:21 +0200
Subject: [PATCH] Add clear cache on hook_enable as recommmended by autoload module.

See autoload project page for details.
---
 versioncontrol.install |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git versioncontrol.install versioncontrol.install
index 97b9e7a..f9be168 100644
--- versioncontrol.install
+++ versioncontrol.install
@@ -434,6 +434,14 @@ function versioncontrol_install() {
 }
 
 /**
+ * Implementation of hook_enable().
+ */
+function versioncontrol_enable() {
+  // Clear all cache as recommended by autoload.
+  cache_clear_all();
+}
+
+/**
  * Implementation of hook_uninstall().
  */
 function versioncontrol_uninstall() {
@@ -653,4 +661,4 @@ function versioncontrol_update_6301() {
   );
   db_add_field($ret, 'versioncontrol_labels', 'data', $data_spec);
   return $ret;
-}
\ No newline at end of file
+}
-- 
1.7.1

