Skip to content
Switch branches/tags
Go to file

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time

Local ResetOpCache plugin for Moodle


Copyright © 2014-2016 TNG Consulting Inc. -

This file is part of ResetOpCache for Moodle -

ResetOpCache is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

ResetOpCache is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with ResetOpCache. If not, see


Michael Milette - Lead Developer


The ResetOpCache plugin for Moodle enables administrators to reset PHP's OpCache from within Moodle. This can be useful when making changes to PHP code on an existing Moodle site where you don't have any other way of resetting an existing opcache.

This will also reset Moodle's own cache at the same time.


This plugin requires Moodle 2.5+ from .


The initial public BETA version was released on 2016-12-19.

For information on releases since then, see

Installation and Update

Install the plugin, like any other plugin, to the following folder:


See for details on installing Moodle plugins.

There are no special considerations required for updating the plugin.


Uninstalling the plugin by going into the following:

Home > Administration > Site Administration > Plugins > Manage plugins > Reset OPCache

...and click Uninstall. You may also need to manually delete the following folder:


Usage & Settings

There are no configurable settings for this plugin.

The local_resetopcache plugin is designed allow administrators to purge the Moodle Cache and reset PHP's cache, if it is enabled.

Once installed, login as a Moodle administrator and then click:

Home > Site Administration > Server > Reset OPCache

Note: Once you use this feature, accessing your website may seem a little slow the first time you access a page until the caches are recreated. This is perfectly normal.

Security considerations

There are no known security considerations at this time.

Motivation for this plugin

The development of this plugin was motivated through our own experience in Moodle development and is supported by TNG Consulting Inc.


This plugin has yet to been tested with PHP 7.0 or later.

Future Releases

Let us know if you have any suggestions.

Further information

For further information regarding the local_resetopcache plugin, support or to report a bug, please visit the project page at:

Language Support

This plugin includes support for the English language. Additional languages including French are supported if you've installed one or more additional Moodle language packs.

If you need a different language that is not yet supported, please feel free to contribute using the Moodle AMOS Translation Toolkit for Moodle at

This plugin has not been tested for right-to-left (RTL) language support. If you want to use this plugin with a RTL language and it doesn't work as-is, feel free to prepare a pull request and submit it to the project page at:

Frequently Asked Questions (FAQ)

None yet. Let us know if you have any suggestions.


The Moodle ResetOpCache module allows administrators to reset PHP's OpCache.




No releases published


No packages published