mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-21 06:06:41 +02:00
refactor: restructure
monorepo with apps/ and services/ directories
This commit is contained in:
parent
25824ed0ac
commit
ff80aeec1f
4062 changed files with 2592 additions and 1278 deletions
|
|
@ -1,46 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
echo "🔍 Checking Redis Cache in Production"
|
||||
echo "======================================"
|
||||
echo ""
|
||||
|
||||
# Your production domain
|
||||
DOMAIN="https://ulo.ad"
|
||||
|
||||
# Test link (create one if needed)
|
||||
TEST_CODE="test-redis-$(date +%s)"
|
||||
TEST_URL="https://example.com/redis-test"
|
||||
|
||||
echo "1. Creating a test link via API..."
|
||||
# You would need to create a test link first via your admin panel or API
|
||||
|
||||
echo ""
|
||||
echo "2. Testing redirect performance..."
|
||||
echo ""
|
||||
|
||||
# First request (should be cache MISS)
|
||||
echo "First request (expected: CACHE MISS):"
|
||||
time curl -I -s -o /dev/null -w "HTTP Status: %{http_code}\nTime: %{time_total}s\nRedirect: %{redirect_url}\n" "$DOMAIN/$TEST_CODE"
|
||||
|
||||
echo ""
|
||||
echo "Waiting 1 second..."
|
||||
sleep 1
|
||||
|
||||
# Second request (should be cache HIT)
|
||||
echo ""
|
||||
echo "Second request (expected: CACHE HIT):"
|
||||
time curl -I -s -o /dev/null -w "HTTP Status: %{http_code}\nTime: %{time_total}s\nRedirect: %{redirect_url}\n" "$DOMAIN/$TEST_CODE"
|
||||
|
||||
echo ""
|
||||
echo "Third request (should be cache HIT):"
|
||||
time curl -I -s -o /dev/null -w "HTTP Status: %{http_code}\nTime: %{time_total}s\nRedirect: %{redirect_url}\n" "$DOMAIN/$TEST_CODE"
|
||||
|
||||
echo ""
|
||||
echo "======================================"
|
||||
echo "✅ If the 2nd and 3rd requests are faster, cache is working!"
|
||||
echo ""
|
||||
echo "Tips for verification:"
|
||||
echo "- Check your server logs for 'Cache HIT!' messages"
|
||||
echo "- First visit should show 'Cache MISS'"
|
||||
echo "- Subsequent visits should show 'Cache HIT!'"
|
||||
echo "- Cache TTL: 5 min (normal) or 24h (popular links)"
|
||||
Loading…
Add table
Add a link
Reference in a new issue