<?php /** * Flush all the caches */ elgg_invalidate_simplecache(); elgg_reset_system_cache(); _elgg_get_autoload_manager()->deleteCache(); system_message(elgg_echo('admin:cache:flushed')); forward(REFERER);
/** * Register a classname to a file. * * @param string $class The name of the class * @param string $location The location of the file * * @return bool true * @since 1.8.0 */ function elgg_register_class($class, $location) { _elgg_get_autoload_manager()->setClassPath($class, $location); return true; }
/** * Registers the plugin's classes * * @throws PluginException * @return true */ protected function registerClasses() { $classes_path = "{$this->path}/classes"; if (is_dir($classes_path)) { _elgg_get_autoload_manager()->addClasses($classes_path); } return true; }