forked from FluidTYPO3/fluidpages
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TASK] Add EM script to clear reflection caches
- Loading branch information
1 parent
4e2b44d
commit 739dbcf
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'; | ||
} | ||
} |