Registers a view to simple cache. Simple cache is a caching mechanism that saves the output of views and its extensions into a file. If the view is called by the simplecache/view.php file, the Elgg framework will not be loaded and the contents of the view will returned from file.
$blog_js = elgg_get_simplecache_url('js', 'blog/save_draft'); elgg_register_simplecache_view('js/blog/save_draft'); elgg_register_js('elgg.blog', $blog_js); elgg_load_js('elgg.blog');
|string||$viewname View name|