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 6378163
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T01:58:10+00:00 2026-05-25T01:58:10+00:00

Using: Symfony 1.4.13 (Propel ORM) I am currently busy optimizing for traffic and I

  • 0

Using: Symfony 1.4.13 (Propel ORM)

I am currently busy optimizing for traffic and I want to relieve the database of getting too many of the same calls.

The “live” page is an overview of articles. Every five seconds an ajax call is made to check for new articles. It works fine at the moment. But I want just one call every 5 seconds (cron job), not 100 calls when 100 users are on the same page at once.

Of course I can do it the old fashion way of just generating an XML document (or something similar) every 5 seconds and load/read that, but I was wondering if you can do it with Memcached too. I’m pretty new to it, so any advice is appreciated. Is it possible to save objects and be accessible to all users? Or is there a better way?

  • 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-25T01:58:11+00:00Added an answer on May 25, 2026 at 1:58 am

    You can create caches in two stages: You could create a query cache for Doctrine, but then you would still hit that cache for each request.

    You can also use the (view) cache system in Symfony, for which you can use different ‘stores’, like APC and memcached. You can configure these cache providers any way you want. (So, in your case, set it’s lifetime to 5 seconds).

    You can read more about the Symfony cache system in the Jobeet tutorial.

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

Sidebar

Related Questions

I am using Symfony 1.4 and Propel(ORM), i want to execute SQL query (
I am using Symfony 1.2.9 (with Propel ORM) on a website I am building.
I am using Symfony 1.2.9 (with Propel ORM), to build a website. I have
In my PHP application ( constructed using symfony framework and Propel ORM), when I
I'm currently designing a website, using symfony (1.2) with Doctrine as an ORM. I
I am using Symfony 1.4 and Propel as ORM. I have created a form
I am using Symfony 1.4.8 and Propel as ORM. I have created a custom
I am using Symfony (1.31) - with Propel ORM to build a website. I
I am using symfony 1.31 with propel ORM and sfGuardPlugin I am about to
I am using Propel (1.4) with Symfony 1.31 (with mySQL db). I want to

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.