Skip to content
  • Benni Mack's avatar
    [!!!][TASK] Streamline caching framework caches · 828f4262
    Benni Mack authored and Anja Leichsenring's avatar Anja Leichsenring committed
    
    
    Due to some heavy history on the caching framework, all
    Database caches start with "cf_cache_", which is optimized
    so they are only called e.g. "cache_pagesection" in the database tables.
    
    In addition, the prefix "cache_" (in e.g. "cache_core") is unnecessary,
    and also there due to legacy reasons, reading $this->getCache('cache_runtime')
    seems very illogical.
    
    The following caches have been renamed:
    - cache_core => core
    - cache_hash => hash
    - cache_pages => pages
    - cache_pagesection => pagesection
    - cache_runtime => runtime
    - cache_rootline => rootline
    - cache_imagesizes => imagesizes
    
    Old identifiers can still be called within PHP,
    but the caching framework throws a deprecation message
    on setting up such a cache.
    
    A silent upgrade wizard will update one's LocalConfiguration
    to use the new naming scheme.
    
    The result is a cleaner, more readable and more streamlined
    code base (we have caches like "extbase" or "assets" where
    there is no prefix) and database structure.
    
    The patch is breaking due to the change in the database tables.
    
    Resolves: #88366
    Releases: master
    Change-Id: I13dcdb0d1bf78f0899615e850856de081b715358
    Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/59661
    Tested-by: default avatarTYPO3com <noreply@typo3.com>
    Tested-by: default avatarAndreas Fernandez <a.fernandez@scripting-base.de>
    Tested-by: default avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
    Reviewed-by: default avatarAndreas Fernandez <a.fernandez@scripting-base.de>
    Reviewed-by: default avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
    828f4262