mneuhaus/TYPO3.Flow — pull request #92 by mneuhaus-bot (2014-03-25 08:40:30+00:00)
Title: [FEATURE] Add a way to clear caches by Path + FilePattern (Revision 6)

Currently it's not really possible to properly implement cacheFlushing
for non flow caches because the monitoring + flushing is essentially
hardcoded in the Scripts.php + CacheManager.

This Change adds a way to easily flush a specific cache when a specific
filepath and file pattern matches.

Example:

TYPO3_Expose_SchemaCache:
affectedFiles:
-
path: 'Resources/Private/TypoScripts'
filePattern: '\.ts2$'
-
path: 'Classes/'
filePattern: '\.php$'

Now when any file inside the folder "Resources/Private/TypoScripts"
is changed in any Package it will trigger a filesChangedDetected
and the cacheManager will flush that cache if it finds a changed
file that matches the filePattern.

Releases: master
Change-Id: I4d8e110fcc152fe07ba014d64360f238ad3c0ef6
Revision-Id: 1e7d9b532e55a09be2f7c50f6151e0b7228a698a