Username Variable in custom links?

The User data of the currently logged in user in WordPress can be retrieved via wpget_current_user() So you should be able to do something like this in your theme or wherever. $current_user = wp_get_current_user(); echo ‘<a href=”http://example.com/members/’ . $current_user->user_login . ‘/profile”>Your profile</a>.’; And build your link that way. HTH

How to make a modification take affect without restarting nginx?

nginx supports the following signals : TERM, INT – Quick shutdown QUIT – Graceful shutdown HUP – Configuration reload: Start the new worker processes with a new configuration, Gracefully shutdown the old worker processes USR1 – Reopen the log files USR2 – Upgrade Executable on the fly WINCH – Gracefully shutdown the worker processes HUP … Read more

Disable caching when serving static files with Nginx (for development)

Since the answer is somehow hidden in the question – here is the solution for nginx in a VirtualBox environment as standalone answer. In your nginx config (usally /etc/nginx/nginx.conf) or vhost config file change the sendfile parameter to off: sendfile off; While sendfile is at the heart of Nginx’s fame (blazing-fast low-level static file serving … Read more

Properly setting up a “default” nginx server for https

I managed to configure a shared dedicated hosting on a single IP with nginx. Default HTTP and HTTPS serving a 404 for unknown domains incoming. 1 – Create a default zone As nginx is loading vhosts in ascii order, you should create a 00-default file/symbolic link into your /etc/nginx/sites-enabled. 2 – Fill the default zone … Read more

an upstream response is buffered to a temporary file

How can I remove the [warn] and avoid buffering responses? Is it better to turn off proxy_buffering or set proxy_max_temp_file_size to 0? Why? You should set proxy_max_temp_file_size to 0 in order to remove it. The proxy_buffering directive isn’t directly related to the warning. You can switch it off to stop any buffering at all but … Read more

nginx – client request body is buffered to a temporary file

This is a warning, not an error. That’s why it was prefaced with [warn] in the log. It means that the size of the uploaded file was larger than the in-memory buffer reserved for uploads. The directive client_body_buffer_size controls the size of that buffer. If you can afford to have 1GB of RAM always reserved … Read more

How does try_files work?

try_files tries the literal path you specify in relation to the defined root directive and sets the internal file pointer. If you use for instance try_files /app/cache/ $uri @fallback; with index index.php index.html; then it will test the paths in this order: $document_root/app/cache/index.php $document_root/app/cache/index.html $document_root$uri before finally internally redirecting to the @fallback named location. You … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)