Optimize Redis on CentOS 7
Optimizing Redis configuration involves various parameters that you can tweak based on your specific use case and workload. Below are some key configurations that you might consider tuning in your Redis setup on CentOS 7. The configuration file for Redis is usually located at /etc/redis.conf. Steps to Apply Changes: Remember, the above options are general …
10 sample use-cases of permission_callback in register_rest_route WordPress Plugin
The permission_callback parameter in register_rest_route allows you to define custom permission checks for your WordPress REST API endpoints. I’ve listed down 10 sample use-cases: 1. Open Access Allowing anyone to access the endpoint, effectively making it public. 2. Authenticated Users Only Only allowing authenticated users to access the endpoint. 3. Admin Users Only Restricting access …
10 sample use-cases of permission_callback in register_rest_route WordPress Plugin Read More »
Checking TTFB using console in Mac or Linux
TTFB stands for “Time To First Byte,” which refers to the amount of time it takes for a web server to start sending data back to a user’s browser after a request is made. This includes the time it takes for the server to receive the request, process it, and generate a response. TTFB is …