Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When to use Transients API and how #213

Closed
bph opened this issue Feb 1, 2024 Discussed in #29 · 13 comments
Closed

When to use Transients API and how #213

bph opened this issue Feb 1, 2024 Discussed in #29 · 13 comments
Assignees
Labels

Comments

@bph
Copy link
Collaborator

bph commented Feb 1, 2024

Discussed in #29

Originally posted by bph December 4, 2022
Thank you @milana for suggesting this topic.
When you have a minute, maybe you can elaborate a bit on what this blog could cover.

@ryanwelcher
Copy link

I have started my draft here. It's not ready for review yet but I wanted to get it added here for reference

@ryanwelcher
Copy link

Draft is ready for first review - https://docs.google.com/document/d/1Qju0NTZGVc5ESqrZi_h39PPu4dCLvIiwy3vGuRTVNyg/edit#heading=h.7mmnqqs4uize

@zzap I'd love your input on this. Especially any good use-cases that can be added.

@ryanwelcher ryanwelcher moved this from In Progress to Needs 1st review in Developer Blog Content Board May 29, 2024
@justintadlock
Copy link

I'm working on the first review.

@justintadlock justintadlock moved this from Needs 1st review to Done w/ 1st Review in Developer Blog Content Board May 30, 2024
@justintadlock
Copy link

Great job, @ryanwelcher! I'm finished with the first review.

@zzap
Copy link
Member

zzap commented Jun 3, 2024

@ryanwelcher thank you so much for working on this article. Great job and very informative.

@zzap I'd love your input on this. Especially any good use-cases that can be added.

I think you have great examples. Another good one could be saving third-party API response.

Another thing I would add, because I hear many developers mixing these two, is the main difference between caching and transients: storage (object, page, browser vs database and memory if caching is enabled), persistence etc

@ryanwelcher
Copy link

Another good one could be saving third-party API response.

Fantastic example, I'll get that added.

Another thing I would add, because I hear many developers mixing these two, is the main difference between caching and transients: storage (object, page, browser vs database and memory if caching is enabled), persistence etc

Great callout. I need to update the intro and this might be a good fit there.

@ryanwelcher
Copy link

Second draft is complete and ready for second review - https://docs.google.com/document/d/1Qju0NTZGVc5ESqrZi_h39PPu4dCLvIiwy3vGuRTVNyg/edit

@ryanwelcher ryanwelcher moved this from Done w/ 1st Review to Needs 2nd review in Developer Blog Content Board Jun 10, 2024
@justintadlock justintadlock moved this from Needs 2nd review to Done w/ 2nd review in Developer Blog Content Board Jun 10, 2024
@justintadlock
Copy link

justintadlock commented Jun 10, 2024

@ryanwelcher - Here are the checklists before and after publishing:

Pre-publishing checklist:

  • Post Title and subheaders in sentence case
  • Are Category or Categories selected?
  • Are Tags added?
  • Is there an explicit Excerpt?
  • Are all images files uploaded to the media library
  • Do all images have an alt-text?
  • If using a Table of Contents, use the Pattern under Developer Blog > Table of contents
  • Assign or upload a featured image
  • Props added? (See Guidelines)
  • Add copy for a social post as comment to this issue (example)

Post-publishing checklist

  • Add Props for reviews to #props channel in WP Slack (Example) (use Slack handles)
  • Close the issue with a comment to link to the published post
  • Close the accompanying discussion with the link to the published post.

@ryanwelcher
Copy link

Public preview is available here. Planning on publishing tomorrow morning.

@ryanwelcher
Copy link

ryanwelcher commented Jun 10, 2024

Social Copy:

The Transient API is a powerful tool for WordPress developers looking to speed up their sites. Explore how to use them here:

https://developer.wordpress.org/news/2024/06/11/an-introduction-to-the-transients-api/

@ryanwelcher
Copy link

@github-project-automation github-project-automation bot moved this from Done w/ 2nd review to Ready to publish in Developer Blog Content Board Jun 11, 2024
@StevenDufresne
Copy link

Love the article!

Very minor; there are a couple of indentation issues in the code samples.

Screenshots

Screenshot 2024-06-12 at 8 55 46 AM Screenshot 2024-06-12 at 8 53 05 AM

@ryanwelcher
Copy link

Thank @StevenDufresne!

I've fixed that, the formatting was a little odd from as I had it in a Google doc. Moving foward, I'll paste it into an IDE then to the article

@bph bph moved this from Ready to publish to Published (Done) in Developer Blog Content Board Jun 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Published (Done)
Development

No branches or pull requests

5 participants