44         $this->cache = $cache;
 
   45         $this->config = $config;
 
   46         $this->datalist = $datalist;
 
   55         $this->cache->clear();
 
   81             $cached_data = $this->cache->load(
$type);
 
   96         return (
bool)$this->config->getVolatile(
'system_cache_enabled');
 
  108         $this->datalist->set(
'system_cache_enabled', 1);
 
  109         $this->config->set(
'system_cache_enabled', 1);
 
  122         $this->datalist->set(
'system_cache_enabled', 0);
 
  123         $this->config->set(
'system_cache_enabled', 0);
 
  135             $this->timer->begin([__METHOD__]);
 
  138         $this->config->set(
'system_cache_loaded', 
false);
 
  145         if (!is_string(
$data)) {
 
  148         $GLOBALS[
'_ELGG']->view_types = unserialize(
$data);
 
  152         $this->config->set(
'system_cache_loaded', 
true);
 
  155             $this->timer->end([__METHOD__]);
 
  171         if (!$this->config->getVolatile(
'system_cache_loaded')) {
 
  172             $this->
save(
'view_types', serialize($GLOBALS[
'_ELGG']->
view_types));
 
  177         if (!$GLOBALS[
'_ELGG']->i18n_loaded_from_cache) {
 
  182                 $this->
save(
"$lang.lang", serialize($map));
 
__construct(ElggFileCache $cache, Config $config, Datalist $datalist)
Constructor.
 
init()
Initializes the simplecache lastcache variable and creates system cache files when appropriate.
 
isEnabled()
Is system cache enabled.
 
disable()
Disables the system disk cache.
 
save($type, $data)
Saves a system cache.
 
reset()
Reset the system cache by deleting the caches.
 
enable()
Enables the system disk cache.
 
loadAll()
Loads the system cache during engine boot.
 
load($type)
Retrieve the contents of a system cache.
 
Access to configuration values.
 
$_ELGG view_types
A list of valid view types as discovered.
 
$_ELGG translations
String translations for the current language.
 
_elgg_services(\Elgg\Di\ServiceProvider $services=null)
Get the global service provider.
 
if(! $display_name) $type
 
trait Profilable
Make an object accept a timer.