Webinoly provides powerful caching capabilities to significantly improve your site’s performance. This guide covers FastCGI cache, Redis object caching, and custom cache configurations.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/QROkes/webinoly/llms.txt
Use this file to discover all available pages before exploring further.
FastCGI Cache
FastCGI cache is automatically configured when you create WordPress or PHP sites with caching enabled.Enable Cache for a Site
- Enables FastCGI caching for WordPress or PHP sites
- Creates optimized cache configurations
- Sets up cache bypass rules for logged-in users
Disable Cache
Custom Cache Settings
For advanced users, you can customize cache behavior:Query String Caching
Control how query strings affect caching:Clear Cache
Webinoly provides commands to clear different cache types:Clear All Caches
- FastCGI cache
- OpCache
- Redis cache
- Memcached
Clear Specific Cache Types
Clear Site-Specific Cache
Redis Object Caching
Redis provides persistent object caching for WordPress and PHP applications.Install Redis
Redis is installed as part of the PHP stack:Configure WordPress for Redis
For WordPress sites, install a Redis object cache plugin (like Redis Object Cache) and configurewp-config.php:
Monitor Redis
Check Redis status and statistics:Memcached
Memcached is an alternative in-memory caching system.Install Memcached
Configure for WordPress
Install a Memcached plugin and add towp-config.php:
Cache Configuration Files
Webinoly cache configurations are stored in:- FastCGI Config:
/etc/nginx/conf.d/fastcgi.conf - Custom Cache:
/etc/nginx/conf.d/webinoly.conf - Site Cache:
/etc/nginx/apps.d/[domain]-[type]cache.conf
Default Cache Settings
FastCGI Cache Validity:- 200 responses: 7 days
- 301/302 redirects: 7 days
- Inactive: 30 days
- Max size: 256MB (adjusts based on RAM)
/run/nginx-cache/
Proxy Cache
For reverse proxy configurations:Best Practices
- Start Conservative: Begin with default cache settings and optimize based on monitoring
- Exclude Dynamic Pages: Always exclude checkout, cart, and user account pages from cache
- Monitor Cache Hit Rates: Check
/var/log/nginx/access.logfor cache status - Clear After Updates: Clear cache after deploying code changes or WordPress updates
- Use Redis for Objects: Combine FastCGI page cache with Redis object cache for best results
Troubleshooting
Cache Not Working
-
Check cache directory permissions:
-
Verify cache configuration:
-
Check cache headers: