Force clearing PHP clearstatcache and opcache-reset on Cache::clear()

This commit is contained in:
Andy Miller
2018-03-08 14:52:49 -07:00
parent 43ca0a2f58
commit eaac77881f
2 changed files with 9 additions and 0 deletions

View File

@@ -14,6 +14,7 @@
* Vendor library updated to latest
* Improved `Session` initialization
* Added ability to set a `theme_var()` option in page frontmatter
* Force clearing PHP `clearstatcache` and `opcache-reset` on `Cache::clear()`
1. [](#bugfix)
* Fixed issue with image alt tag always getting empted out unless set in markdown
* Fixed issue with remote PHP version determination for Grav updates [#1883](https://github.com/getgrav/grav/issues/1883)

View File

@@ -429,6 +429,14 @@ class Cache extends Getters
$output[] = '';
}
// Clear stat cache
@clearstatcache();
// Clear opcache
if (function_exists('opcache_reset')) {
@opcache_reset();
}
return $output;
}