Add cache clear utility script
- Add clear-cache.php for clearing PHP OPcache and realpath cache - Useful for debugging and ensuring latest code changes are visible
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
// Clear PHP OPcache
|
||||
if (function_exists('opcache_reset')) {
|
||||
opcache_reset();
|
||||
echo "OPcache cleared successfully!\n";
|
||||
} else {
|
||||
echo "OPcache not available\n";
|
||||
}
|
||||
|
||||
// Clear realpath cache
|
||||
clearstatcache(true);
|
||||
echo "Realpath cache cleared!\n";
|
||||
|
||||
echo "\nNow reload the page with CTRL+F5 (hard refresh)\n";
|
||||
?>
|
||||
Reference in New Issue
Block a user