Bug #54148
closedClear all caches not working properly
0%
Description
Hi,
I already had problems with the cache during installation (see http://forge.typo3.org/issues/54015) - but I wasn't sure if I really deleted all caches.
Now I am developing extension codes, and still have lots of problems with cache, reproducable now.
- Change Extension Code -> Clear all caches -> Still old code in error log
Only rm -r typo3temp/* helps
- "clear all caches" crashes sometimes, then I can't even load the typo3 login page, Error log tells me: Backend Classes missing, so rm -r typo3temp/* again
If you give me a hint where to look or where to debug, I can dig deeper, currently I am using the rm -r every 15 minutes...
Updated by Markus Klein over 10 years ago
Hi!
Yes it depends which code you're changing. The Clear All Caches in the BE does not clear some code caches (because this is normally not necessary for the Integrator in the backend).
I agree this is not smooth by now.
Updated by Philipp Gampe over 10 years ago
- Status changed from New to Needs Feedback
- Target version deleted (
next-patchlevel)
Code caches are not cleared from backend. Of you want to avoid the code caches, set their backend to the null backend during development.
Therefore I would say, this is not a bug in the clear cache function, but in the title/description of the button.
Would you agree?
Updated by Stephan Großberndt over 10 years ago
See http://docs.typo3.org/TYPO3/CoreApiReference/CachingFramework/Configuration/Index.html.
If you are developing in extbase the caches you have to set to NullBackend are
$TYPO3_CONF_VARS['SYS']['caching']['cacheConfigurations']['extbase_reflection']
$TYPO3_CONF_VARS['SYS']['caching']['cacheConfigurations']['extbase_object']
Updated by Dmitry Dulepov over 10 years ago
I think Extbase cache should be cleared too. Imagine, if you install an update version of the ext that added injected properties of the object. If Extbase object cache is not cleared at that time, dependency injection will not work.
Please, correct me if I am wrong.
Updated by Markus Klein about 10 years ago
- Status changed from Needs Feedback to Closed
The EM clears all system caches on ext updates.
If you need to clear them manually, enable the "Clear System Caches" button in the BE.