concrete/src/Block/BlockType/BlockType.php
public static function clearCache()
    {
        $app = Application::getFacadeApplication();
        $db = $app->make(Connection::class);
        $sm = $db->getSchemaManager();
        $tableNames = array_map('strtolower', $sm->listTableNames());
        if (in_array('config', $tableNames, true)) {
            $platform = $db->getDatabasePlatform();
            foreach ($sm->listTableColumns('Blocks') as $tableColumn) {
                if (strcasecmp($tableColumn->getName(), 'btCachedBlockRecord') === 0) {
                    $db->query('update Blocks set btCachedBlockRecord = null');
                    break;
                }
            }
            if (in_array('collectionversionblocksoutputcache', $tableNames, true)) {
                $db->exec($platform->getTruncateTableSQL('CollectionVersionBlocksOutputCache'));
            }
        }
    }
public static function clearCache()
    {
        $app = Application::getFacadeApplication();
        $db = $app->make(Connection::class);
        $sm = $db->getSchemaManager();
        $tableNames = array_map('strtolower', $sm->listTableNames());
        if (in_array('config', $tableNames, true)) {
            $platform = $db->getDatabasePlatform();
            foreach ($sm->listTableColumns('Blocks') as $tableColumn) {
                if (strcasecmp($tableColumn->getName(), 'btCachedBlockRecord') === 0) {
                    $db->query('update Blocks set btCachedBlockRecord = null');
                    break;
                }
            }
            if (in_array('collectionversionblocksoutputcache', $tableNames, true)) {
                $db->exec($platform->getTruncateTableSQL('CollectionVersionBlocksOutputCache'));
            }
        }
    }
public static function clearCache ( ) { $ app = Application :: getFacadeApplication ( ) ; $ db = $ app -> make ( Connection :: class ) ; $ sm = $ db -> getSchemaManager ( ) ; $ tableNames = array_map ( 'strtolower' , $ sm -> listTableNames ( ) ) ; if ( in_array ( 'config' , $ tableNames , true ) ) { $ platform = $ db -> getDatabasePlatform ( ) ; foreach ( $ sm -> listTableColumns ( 'Blocks' ) as $ tableColumn ) { if ( strcasecmp ( $ tableColumn -> getName ( ) , 'btCachedBlockRecord' ) === 0 ) { $ db -> query ( 'update Blocks set btCachedBlockRecord = null' ) ; break ; } } if ( in_array ( 'collectionversionblocksoutputcache' , $ tableNames , true ) ) { $ db -> exec ( $ platform -> getTruncateTableSQL ( 'CollectionVersionBlocksOutputCache' ) ) ; } } }
Clears output and record caches.
Clears output and record caches .