Commit Graph

7 Commits

Author SHA1 Message Date
Local Server
7200bd7012 Fix double-click cart/wishlist issue: prevent duplicate initialization 2026-01-14 21:10:06 -06:00
Local Server
f2f0075830 Fix cart dropdown footer JS: match wishlist style on all pages 2026-01-14 21:05:48 -06:00
Local Server
f818fff3a5 Style: Unify cart Continue Shopping button with wishlist style
Updated cart dropdown Continue Shopping buttons to use btn-outline
class (matching wishlist style) instead of btn-text across all pages.

Changes:
- shop.html: btn-text → btn-outline
- contact.html: btn-text → btn-outline
- product.html: btn-text → btn-outline
- about.html: btn-text → btn-outline

All cart Continue Shopping buttons now have consistent styling
with the wishlist Continue Shopping button (purple outline style).
2026-01-14 20:47:32 -06:00
Local Server
2db9f83d2d Performance: Optimize database and frontend-backend communication
Major optimizations implemented:

DATABASE:
- Added 6 new composite indexes for products queries
- Added slug index for blogposts and products
- Added composite index for portfolio active + display order
- ANALYZE all tables to update query planner statistics
- VACUUM database for optimal performance

FRONTEND API CACHING:
- Created api-cache.js with intelligent caching system
- Request deduplication for simultaneous calls
- Custom TTL per endpoint (5-30 minutes)
- Automatic cache cleanup every minute
- Cache hit/miss logging for monitoring

FRONTEND INTEGRATION:
- Updated portfolio.html to use apiCache
- Updated blog.html to use apiCache
- Updated shop.html to use apiCache
- Updated home.html to use apiCache
- Updated product.html to use apiCache (2 endpoints)

PERFORMANCE RESULTS:
- API response times: 7-12ms (excellent)
- Backend cache hit rates showing 0-41% improvement
- All endpoints returning HTTP 200
- All pages loading in under 10ms

TESTING:
- Added test-api-performance.sh for continuous monitoring
- Verified all 6 API endpoints functional
- Verified all frontend pages loading correctly
- Database indexes verified (30+ indexes active)

No functionality changes - pure performance optimization.
2026-01-14 08:19:20 -06:00
Local Server
9f659a2c59 Fix: Restore website functionality - all pages and APIs working 2026-01-14 07:16:04 -06:00
Local Server
c1da8eff42 webupdatev1 2026-01-04 17:52:37 -06:00
Local Server
1919f6f8bb updateweb 2026-01-01 22:24:30 -06:00