WordPressでset_transient & get_transientを使ってキャッシュを利用する

Sep 7, 2015
AD:

AnalytcsのAPIを使用してページ表示ランキングを作っていたのですが、GAのAPIはアクセスに制限があるのとリスポンスが遅かったので結果をキャッシュに入れておきました。
いろいろなキャッシュに入れる方法がありますが、先日set_transient()ものを知ったので、さっそく使ってみました。

こんな感じで使用しております。
86400で1日間の有効期限を与えております。

Related posts

AD:

No Comments, Comment or Ping

Reply to “WordPressでset_transient & get_transientを使ってキャッシュを利用する”

You must be logged in to post a comment.

Search Keyword

Meta

face Ayumi Mizoshiri
WEB developer

FacebookPage

Popular Posts

Sorry. No data so far.

ARCHIVES