Skip to content

Instantly share code, notes, and snippets.

@hypeJunction
Created May 24, 2019 12:36
Show Gist options
  • Save hypeJunction/3917b3e580da6e7c71f373565819fc38 to your computer and use it in GitHub Desktop.
Save hypeJunction/3917b3e580da6e7c71f373565819fc38 to your computer and use it in GitHub Desktop.
<?php
require_once dirname(dirname(__FILE__)) . "/vendor/autoload.php";
\Elgg\Application::start();
_elgg_services()->simpleCache->invalidate();
_elgg_services()->systemCache->reset();
error_log('Cache has been flushed');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment