From 274e17fcc4530a12e4b3d940a5710125d1c861f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=F0=9D=93=99=F0=9D=93=BE=F0=9D=93=B5=F0=9D=93=B2?= =?UTF-8?q?=F0=9D=93=B8?= Date: Wed, 8 Jan 2025 13:32:06 +0100 Subject: [PATCH] Add php/clean-cache.php --- php/clean-cache.php | 83 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 php/clean-cache.php 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."; + } + ?> +
+ +