function MemoryBackend::getRequestTime
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Cache/MemoryBackend.php \Drupal\Core\Cache\MemoryBackend::getRequestTime()
- 10 core/lib/Drupal/Core/Cache/MemoryBackend.php \Drupal\Core\Cache\MemoryBackend::getRequestTime()
Wrapper method for REQUEST_TIME constant.
Return value
int
8 calls to MemoryBackend::getRequestTime()
- MemoryBackend::invalidate in core/
lib/ Drupal/ Core/ Cache/ MemoryBackend.php - Marks a cache item as invalid.
- MemoryBackend::invalidateAll in core/
lib/ Drupal/ Core/ Cache/ MemoryBackend.php - Marks all cache items as invalid.
- MemoryBackend::invalidateMultiple in core/
lib/ Drupal/ Core/ Cache/ MemoryBackend.php - Marks cache items as invalid.
- MemoryBackend::invalidateTags in core/
lib/ Drupal/ Core/ Cache/ MemoryBackend.php - Marks cache items with any of the specified tags as invalid.
- MemoryBackend::prepareItem in core/
lib/ Drupal/ Core/ Cache/ MemoryBackend.php - Prepares a cached item.
File
-
core/
lib/ Drupal/ Core/ Cache/ MemoryBackend.php, line 203
Class
- MemoryBackend
- Defines a memory cache implementation.
Namespace
Drupal\Core\CacheCode
protected function getRequestTime() {
return defined('REQUEST_TIME') ? REQUEST_TIME : (int) $_SERVER['REQUEST_TIME'];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.