wordpress Current User Id not authenticated by rest api & disable cache
-
How can i get the current logged in user id NOT the user authenticated by the rest api.
get_current_user_id() shows the user using the rest api. That is NOT what i need.
Also how can i disable server cache and browser cache entirely in wordpress?
I tried:
define( ‘WP_CACHE’, false );and in apache .htaccess
<IfModule mod_headers.c>
FileETag None
Header unset ETag
Header unset Pragma
Header unset Cache-Control
Header unset Last-Modified
Header set Pragma “no-cache”
Header set Cache-Control “max-age=0, no-cache, no-store, must-revalidate”
Header set Expires “Thu, 1 Jan 1970 00:00:00 GMT”
</IfModule>still doesn’t work… the cache continues persisting.
Not using any caching plugins…
- The topic ‘wordpress Current User Id not authenticated by rest api & disable cache’ is closed to new replies.