diff --git a/php/clean-cache.php b/php/clean-cache.php new file mode 100644 index 0000000..ad6ffad --- /dev/null +++ b/php/clean-cache.php @@ -0,0 +1,83 @@ + + + + + + + Cache Cleaner + + + +

Cache Cleaner

+
+ +
+ +
+ "; + } else { + echo "❌ Failed to clear OPcache.
"; + } + } else { + echo "❌ OPcache is not enabled or available.
"; + } + + // Clear APCu Cache + if (function_exists('apcu_clear_cache')) { + apcu_clear_cache(); + echo "✅ APCu cache cleared successfully.
"; + } else { + echo "❌ APCu is not enabled or available.
"; + } + + // Clear Realpath Cache + if (function_exists('clearstatcache')) { + clearstatcache(); + echo "✅ Realpath cache cleared successfully.
"; + } else { + echo "❌ Failed to clear Realpath cache.
"; + } + + echo "🎉 Cache cleaning process completed."; + } + ?> +
+ +