emanuelx
Forum Replies Created
-
Forum: Plugins
In reply to: [W3 Total Cache] Issue with minified cssHi @vmarko
I didn’t made any change on document root and didn’t hide the wp-content folder.
I’m using the turnkey wordpress LXC image on my proxmox.
Forum: Plugins
In reply to: [W3 Total Cache] Issue with minified cssThe cache folder is placed at wordpress/wp-content/cache
Forum: Plugins
In reply to: [WP REST Cache] Cache http post methodHi @rockfire,
Basically, I don’t use GET methods in my endpoints, because GET method isn’t too save as POST method.
So, if you can find a way to cache the POST requests based on POST body will be great to my application.
Forum: Plugins
In reply to: [WP REST Cache] Cache http post methodI don’t explain very well, but the endpoint is always the same but the parameters on body can be different.
Example:
Request number 1
curl -X POST -H “Content-Type: application/json” -d ‘{“slug”: “hello-world”}’ https://example/api/v1/customwordpress/post/readRequest number 2
curl -X POST -H “Content-Type: application/json” -d ‘{“slug”: “test-1”}’ https://example/api/v1/customwordpress/post/readOn my tests this doesn’t work well, because wp rest cache doesn’t look at body.
Forum: Plugins
In reply to: [WP REST Cache] Cache http post methodHi @rockfire ,
Hi already added this filter on my code.
add_filter( 'wp_rest_cache/allowed_request_methods', function () { return array('GET', 'POST'); } );But this causes another issue, the end endpoint is always the same but the content of HTTP body changes everytime and the plugin doesn’t save that information on databse.`
Do you have other filter to save also the content from body?