Pascal Bartl
Quiz by , created more than 1 year ago

TYPO3 CD 2020 (zweite Auflage) Quiz on 3.6 Performance and Caching, created by Pascal Bartl on 09/04/2021.

0
0
0
Pascal Bartl
Created by Pascal Bartl over 3 years ago
Close

3.6 Performance and Caching

Question 1 of 7

1

Which cache groups exist in the TYPO3 core? (1)

Select one or more of the following:

  • pages

  • backend and frontend

  • pages, backend and frontend

  • pages, system and all

  • pages, system and core

Explanation

Question 2 of 7

1

How can the page cache be cleared automatically after a record has been saved, even if the plugin is cached? (1)

Select one or more of the following:

  • This is not possible

  • This is not possible without disabling the plugin cache

  • By using the TypoScript setting persistence.enableAutomaticCacheClearing

  • By using the User TSconfig setting TCEMAIN.clearCacheCmd

  • By using the Page TSconfig setting TCEMAIN.clearCacheCmd

Explanation

Question 3 of 7

1

In which file is the default caching framework configuration stored (alongside other configuration)? (1)

Select one or more of the following:

  • typo3/sysext/core/ext_tables.php

  • typo3/sysext/core/ext_localconf.php

  • typo3/sysext/cache/Configuration/DefaultConfiguration.php

  • typo3/sysext/core/Configuration/DefaultConfiguration.php

Explanation

Question 4 of 7

1

How can you clear all caches at once? (2)

Select one or more of the following:

  • By executing the clearAllCaches() command with the DataHandler

  • By executing the clear_cacheCmd('all') command with the DataHandler

  • By executing the flushCaches() method of the Cache Manager

  • By executing the flush() method of the Cache Manager

  • By executing the flushAll() method of the Action Controller

Explanation

Question 5 of 7

1

What are the differences between methods get() and getCache() of the Cache Manager? (2)

Select one or more of the following:

  • get() determines the cache

  • getCache() determines the cache

  • get() retrieves data from the cache

  • getCache() retrieves data from the cache

  • get() and getCache() are identical functions

Explanation

Question 6 of 7

1

How can a developer check whether a cache entry exists for a specific identifier? (2)

Select one or more of the following:

  • By using method has()

  • By using method hasCache()

  • By using method entryExists()

  • By testing against the value false

  • By testing against the value -1

Explanation

Question 7 of 7

1

How can you globally deactivate the caching framework? (1)

Select one or more of the following:

  • By iterating all registered caches and setting them to the NullBackend

  • By using the configuration
    $GLOBALS['TYPO3_CONF_VARS']['SYS']['useCachingFramework'] = 0

  • By using the configuration
    $GLOBALS['TYPO3_CONF_VARS']['SYS']['useCachingFramework'] = false

  • By using the configuration
    $GLOBALS['TYPO3_CONF_VARS']['SYS']['disableCachingFramework'] = 1

  • By using the configuration
    $GLOBALS['TYPO3_CONF_VARS']['SYS']['disableCachingFramework'] = true

Explanation