Skip to content

Commit

Permalink
[TASK] Add EM script to clear reflection caches
Browse files Browse the repository at this point in the history
  • Loading branch information
NamelessCoder committed Sep 18, 2014
1 parent 4e2b44d commit 739dbcf
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions class.ext_update.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?php

/**
* Class ext_update
*
* Performs update tasks for extension Fluidpages
*/
class ext_update {

/**
* @return boolean
*/
public function access() {
return TRUE;
}

/**
* @return string
*/
public function main() {
$GLOBALS['TYPO3_DB']->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';
}
}

0 comments on commit 739dbcf

Please sign in to comment.