yaquawa
Forum Replies Created
-
Forum: Plugins
In reply to: [LiteSpeed Cache] How to purge “public cached URI” programmatically?Thanks @qtwrk
Can you tell me when to use
do_action( 'litespeed_tag_add', 'my-tag' )
?
I mean it should be used in another hook right?Forum: Plugins
In reply to: [LiteSpeed Cache] How to purge “public cached URI” programmatically?@qtwrk may be it’s the “cache tag”(https://docs.litespeedtech.com/lscache/lscwp/api/#final-tagging) in the context of LiteSpeed Cache ?
I mean, instead of doing:
do_action( 'litespeed_purge_url', '/graphql?query=foo' );
I’d like to purge the cache for
/graphql?query=foo
like this:
do_action( 'litespeed_purge_url', 'foo' );
is that possible?
- This reply was modified 3 years, 7 months ago by yaquawa.
Forum: Plugins
In reply to: [LiteSpeed Cache] How to purge “public cached URI” programmatically?Thanks @qtwrk !
So the cache key is the path of the URL right? Can I set the cache key myself? For example set the cache keyfoo
forGET https://example.com/graphql?query=foo
.Forum: Plugins
In reply to: [LiteSpeed Cache] CORS request won’t trigger making cache?@qtwrk Thanks for the quick reply, I’ve sent the email just now.
Forum: Plugins
In reply to: [LiteSpeed Cache] CORS request won’t trigger making cache?Hi @qtwrk , do you mean
[email protected]
?
could you provide me the email address (or maybe the URL of the form?) to send for? Thanks.- This reply was modified 3 years, 8 months ago by yaquawa.
Forum: Plugins
In reply to: [LiteSpeed Cache] CORS request won’t trigger making cache?@qtwrk OK, I have created a topic at here https://www.litespeedtech.com/support/forum/threads/cors-request-won%E2%80%99t-trigger-making-cache.19915/
Forum: Plugins
In reply to: [LiteSpeed Cache] CORS request won’t trigger making cache?@qtwrk Yes, I have enabled the “advanced” option, and the log is complete.
Forum: Plugins
In reply to: [LiteSpeed Cache] CORS request won’t trigger making cache?I also tried to find the log you mentioned at here:
https://github.com/litespeedtech/lscache_wp/blob/v3.6.4/src/core.cls.php#L331
but I can’t find any text matches
[Core] CHK html bypass: not get method
, does this means this is a bug?Forum: Plugins
In reply to: [LiteSpeed Cache] CORS request won’t trigger making cache?sorry for the late replying, I have tried output the log, this is what I got.
Do you see any problems in this log? looks like it was caching theOPTIONS
method??? ------OPTIONS HTTP/1.1 (HTTPS) /graphql Query String: query=query%20ListContentCategories%20%7B%0A%20%20contentCategories(where%3A%20%7BhideEmpty%3A%20true%7D)%20%7B%0A%20%20%20%20nodes%20%7B%0A%20%20%20%20%20%20name%0A%20%20%20%20%20%20slug%0A%20%20%20%20%20%20uri%0A%20%20%20%20%20%20__typename%0A%20%20%20%20%7D%0A%20%20%20%20__typename%0A%20%20%7D%0A%7D%0A&operationName=ListContentCategories&variables=%7B%7D HTTP_REFERER: https://localhost:8080/ User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114 Safari/537.36 Accept: */* Accept Encoding: gzip X-LSCACHE: true ?? ------OPTIONS HTTP/1.1 (HTTPS) /graphql Query String: query=query%20ListContentPosts(%24limit%3A%20Int)%20%7B%0A%20%20contentPosts(first%3A%20%24limit)%20%7B%0A%20%20%20%20nodes%20%7B%0A%20%20%20%20%20%20databaseId%0A%20%20%20%20%20%20title%0A%20%20%20%20%20%20date%0A%20%20%20%20%20%20uri%0A%20%20%20%20%20%20featuredImage%20%7B%0A%20%20%20%20%20%20%20%20node%20%7B%0A%20%20%20%20%20%20%20%20%20%20mediaItemUrl%0A%20%20%20%20%20%20%20%20%20%20__typename%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20__typename%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20contentCategories%20%7B%0A%20%20%20%20%20%20%20%20nodes%20%7B%0A%20%20%20%20%20%20%20%20%20%20name%0A%20%20%20%20%20%20%20%20%20%20slug%0A%20%20%20%20%20%20%20%20%20%20uri%0A%20%20%20%20%20%20%20%20%20%20__typename%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20__typename%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20__typename%0A%20%20%20%20%7D%0A%20%20%20%20pageInfo%20%7B%0A%20%20%20%20%20%20hasPreviousPage%0A%20%20%20%20%20%20hasNextPage%0A%20%20%20%20%20%20endCursor%0A%20%20%20%20%20%20__typename%0A%20%20%20%20%7D%0A%20%20%20%20__typename%0A%20%20%7D%0A%7D%0A&operationName=ListContentPosts&variables=%7B%22limit%22%3A100%7D HTTP_REFERER: https://localhost:8080/ User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114 Safari/537.36 Accept: */* Accept Encoding: gzip X-LSCACHE: true [Ctrl] X Cache_control -> stale [Ctrl] X Cache_control -> stale [Router] get_role: [Media] init [Router] get_role: [Media] init [LQIP] init [LQIP] init [CDN] init ? Task init [Router] LSCWP_CTRL bypassed empty [CDN] init ? Task init [GUI] init [Router] LSCWP_CTRL bypassed empty [GUI] init
Forum: Plugins
In reply to: [LiteSpeed Cache] CORS request won’t trigger making cache?Hi @qtwrk, thanks for the details!
Could you reproduce my issue in your environment..?
Because I have no idea how to solve this, I want to ensure if this is an issue that related to my environment.
Thanks.Forum: Plugins
In reply to: [LiteSpeed Cache] CORS request won’t trigger making cache?Hi @usabe , thanks for replying!
I’m not an expert of LiteSpeed Cache, I’m just using a rental server that using LiteSpeed.
Could you tell me how to setup LiteSpeed Cache to not cache request except
GET
andHEAD
method? (Should I modify the.htaccess
?)- This reply was modified 3 years, 8 months ago by yaquawa.
I’m not using CPT UI, but I have same problem here on the custom post type.
@htmgarcia can you reproduce this problem on your environment ?- This reply was modified 4 years, 4 months ago by yaquawa.