@stackcoder opened this Pull Request on September 25th 2014 Contributor

Some webhosters with opcache enabled might disable functions like this for security reasons. This should prevent foreign applications from deleting cached things.

Without ignoring this error piwik is unusable and will always shows the error message:

There is an error. Please report the message (...)
Warning: Zend OPcache API is restricted by "restrict_api" configuration directive in /piwik/core/CacheFile.php on line 219

This call should treat the same way as opcache_reset() in core/Filesystem.php added with faffbd68b41a00a0e220138285094f517c07778d

Other functions which might be disabled:

  • opcache_reset
  • opcache_get_configuration
  • opcache_get_status
  • opcache_compile_file
@mattab commented on September 26th 2014 Owner
This Pull Request was closed on September 26th 2014
Powered by GitHub Issue Mirror