From 739dbcffea51e8016a7ab0fd44a7490e262465e5 Mon Sep 17 00:00:00 2001 From: Claus Due Date: Thu, 18 Sep 2014 04:06:13 +0200 Subject: [PATCH] [TASK] Add EM script to clear reflection caches --- class.ext_update.php | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 class.ext_update.php diff --git a/class.ext_update.php b/class.ext_update.php new file mode 100644 index 00000000..178666fd --- /dev/null +++ b/class.ext_update.php @@ -0,0 +1,27 @@ +exec_TRUNCATEquery('cf_extbase_reflection'); + $GLOBALS['TYPO3_DB']->exec_TRUNCATEquery('cf_extbase_reflection_tags'); + $GLOBALS['TYPO3_DB']->exec_TRUNCATEquery('cf_extbase_object'); + $GLOBALS['TYPO3_DB']->exec_TRUNCATEquery('cf_extbase_object_tags'); + return $GLOBALS['TYPO3_DB']->sql_affected_rows() . ' rows have been updated'; + } +}