[TYPO3-english] Clear Cache of `cache_pages` from external extension
    Pablo Feldman 
    pablofeldman90 at gmail.com
       
    Thu Nov 13 19:03:22 CET 2014
    
    
  
Hi list!
I'm trying to clear the cache of table `cache_pages`
, which is being populated,
 
from an extension,
 using this php code:
$GLOBALS['typo3CacheManager']->getCache('cache_pages')->flush();
It's seems that Typo3 does not recognize 'cache_pages'  as a cache,
because, when I run that line it returns:
A cache with identifier "cache_pages" does not exist.
I don't know what I'm missing, I also dumped the content of
*$GLOBALS['typo3CacheManager']*, the check which caches recognize, and I
only have this:
protected $cacheFactory =>
  NULL
  protected $caches =>
  array(3) {
    'cache_extbase_object' =>
    class t3lib_cache_frontend_VariableFrontend#9 (3) {
      protected $useIgBinary =>
      bool(false)
      protected $identifier =>
      string(20) "cache_extbase_object"
      protected $backend =>
      class t3lib_cache_backend_DbBackend#8 (13) {
        ...
      }
    }
    'tx_extbase_cache_reflection' =>
    class t3lib_cache_frontend_VariableFrontend#13 (3) {
      protected $useIgBinary =>
      bool(false)
      protected $identifier =>
      string(27) "tx_extbase_cache_reflection"
      protected $backend =>
      class t3lib_cache_backend_DbBackend#12 (13) {
        ...
      }
    }
    'tx_extbase_cache_object' =>
    class t3lib_cache_frontend_VariableFrontend#15 (3) {
      protected $useIgBinary =>
      bool(false)
      protected $identifier =>
      string(23) "tx_extbase_cache_object"
      protected $backend =>
      class t3lib_cache_backend_DbBackend#14 (13) {
        ...
      }
    }
  }
  protected $cacheConfigurations =>
  array( 0 ) {
  }
}
Any help?
Thanks in advance
    
    
More information about the TYPO3-english
mailing list