TYPO3 CMS  TYPO3_6-2
TypoScriptFrontendHook.php
Go to the documentation of this file.
1 <?php
3 
22 
30  public function headerNoCache(array &$params, $ref) {
31  // Requirements are that the crawler is loaded, a crawler session is running and re-indexing requested as processing instruction:
32  if (\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('crawler') && $params['pObj']->applicationData['tx_crawler']['running'] && in_array('tx_indexedsearch_reindex', $params['pObj']->applicationData['tx_crawler']['parameters']['procInstructions'])) {
33  // Setting simple log entry:
34  $params['pObj']->applicationData['tx_crawler']['log'][] = 'RE_CACHE (indexed), old status: ' . $params['disableAcquireCacheData'];
35  // Disables a look-up for cached page data - thus resulting in re-generation of the page even if cached.
36  $params['disableAcquireCacheData'] = TRUE;
37  }
38  }
39 
40 }