Join the Webstudio community

T
Talith
Offline, last seen last week
Joined December 13, 2024
My current site right now fills some elements in the home page (the menu content, some featured posts) from a wordpress backend using graphql. Also every individual page/post will also get its content from there.

How does webstudio "cache" these queries? And for how long? I remember reading something you guys said about increasing the time that info lives. In the designer itself the result of the query pretty much remains until you manually refresh and I wanted to check if there was a way to set the lifespan of that information.
The current site doesn´t change information that often and increasing the life of the information before needing a query to the backend would reduce the load on the backend significantly.

I also would like to know about the call itself to the backend: Is it done by the server that holds the webstudio site itself? or by the browser client? I have been dealing with some unwanted ddos attacks on the site and backend and I am wondering If i can restrict the graphql endpoint to only allow requests from the IP of the webstudio server..

Overall I´m just looking to understand a little better how webstudio retrieves the info from a backend to try to come up with better solutions to keep the site up with less dependency on the backend site.
2 comments
O
J
I need to publish some changes in the server I run and the Vanilla option is gone please help
71 comments
J
T
B
O
Hey look at that... a Bluesky link!!!!! yay!!!
Essentially.... just like the class attribute can grab its value from a resource origin, it would be cool that tokens could use it too.
12 comments
O
T
Te thing is the target page is a dynamic page, please remove this restriction we need to be able to redirect to a slug we know...
4 comments
T
B
O
I just created a Vercel account to deploy and every image that comes from Wordpress is not shown, here an ss of how urls look.

App: https://p-70c5feda-c1cc-4db6-aad3-a9311d4ba1c7.apps.webstudio.is/?authToken=0f5ffa08-7cfe-4198-bfc4-29cfe09c061d&mode=preview

Tried turning off optimize and didnt change a thing....
77 comments
B
T
O
m
S
Im using Wordpress as my headless, and currently have a custom post named promotions, these have a custom field for the finish date which I can retreive in the Promotion page with no issue.

RIght now in order to show a banner on the page that shows the current promotion is expired we use a taxonomy so they select that the current promo is expired, since I can compare on the expression editor strings I can do this,

However I tried to improve the concept by using the promotion finish date... It should be a simple conditional:

object.finishdate > today ? true : false

However... I need to use at least the javscript Date object but I noticed the expresison editor doesnt allow me to put it inline...
also noticed that the variables we can create can be string, number... but no date

Is there any way I could use Date objects?
17 comments
O
T
One of our clients requires this directory and file to be present and its quite a headache in the current server, i wonder if its possible to include it in the website devewloped here
1 comment
J
13 comments
O
T