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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T08:59:28+00:00 2026-06-05T08:59:28+00:00

Ok, so I have recently been looking at block caching in magento. Looks like

  • 0

Ok, so I have recently been looking at block caching in magento. Looks like a really great way to speed up rendering of pages, but it also looks like a bit of a pain in the arse.

For example, caching category blocks seems to require a lot of messing around to get done properly. Also, there a lot of core blocks which do not utilize block caching that probably could. In these cases, does a developer have to create a single module and then rewrite all of these core blocks, just so as to enable block caching on them?

Are there any other tips with regards to block caching for those new to this subject?

  • 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-06-05T08:59:29+00:00Added an answer on June 5, 2026 at 8:59 am

    Block caching does not (in most cases) need to be implemented at the PHP level, it can be done in XML. To enable caching for a block that already exists you’ll need to open up a <reference /> to the block, and then set the appropriate data with <action /> calls, like so:

    <reference name="myblock">
        <action method="setCacheLifetime"><seconds>1800</seconds></action>
        <action method="setCacheKey"><key>my-unique-cache-key</key></action>
    </reference>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been looking into OSGi recently and think it looks like a really good
Recently I have been looking for a way to create proxy objects that reflect
I have been looking into CruiseControl configuration recently (I'm a complete CC noob) and
I have been looking a lot at SOA recently. Isn't CORBA exactly the same
I have been looking at TLS recently, and I am unsure as to why
I have been looking through some code on an open source project recently and
Recently I have been looking into OpenGL, and I've got up to the stage
I've been looking into memory management a lot recently and have been looking at
I have been looking at Reflection.Emit recently. I wrote a simple program that generates
I have recently been looking at Core Data for the iPhone and I have

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.