Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7504447
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T21:34:21+00:00 2026-05-29T21:34:21+00:00

i have a problem and confused a little bit. I made some research in

  • 0

i have a problem and confused a little bit. I made some research in stackoverflow but cannot reach the exact solution.

My problem is that : I retrieve some datas from Google Analytics but this method is too slow.What i want to do is that i want to retrieve datas from Google each 6 hours and inserting them into DB then users can have datas on my site faster because i will take datas from DB.

In my research, i find some solutions like cron and memcached, but is there any way to do in php with some functions?

In phpp manual, i recognize some function like time() . Can i do that with time() function ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T21:34:22+00:00Added an answer on May 29, 2026 at 9:34 pm

    You can solve it in this way. You store data from google in your DB, but adds one more field – like last_update_time and put there the time you have got it from google. When next time user is getting data from your DB, you need to check the difference between last_update_time and current time. Then if it is bigger than 6 hour, so you grab new data from google and refresh it in you DB, as the last_update_time.
    This will allow you not to use cron.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am little bit confused about following problem & their solutions: i have 2
I have a jquery code, but I'm a little bit confused on how can
I'm a little bit confused by this scenario: I have a class that implements
there is something that confuses me a little bit and i would like some
I'm tring to learn C++ and I have a little problem. I have some
I am a little confused with Hibernate. My problem is the following: I have
I'm a little confused how to do this, basically I have a page that
I'm confused a little bit with my problem, so I don't know if I
I have just started to learn C# and I'm a little bit confused about
I am confused over a little problem i have with jquery in my project.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.