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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T00:55:13+00:00 2026-06-12T00:55:13+00:00

I am writing a module that uses some custom caching mechanism and i would

  • 0

I am writing a module that uses some custom caching mechanism and i would like for my caching to be clearable from in the admin area along with the core Magento caching.

Also I would like to check if the caching is enabled for my module only and then choose to do caching or not based on this.

I am sure this is possible but do not know how.

  • 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-12T00:55:14+00:00Added an answer on June 12, 2026 at 12:55 am

    Magento makes this very easy for you, essentially just a few lines of code in your modules global config…

    <global>
        <!-- Other global config -->
        <cache>
            <types>
                <namespace_module module="namespace_module" translate="label description">
                    <label>Your modules cache label</label>
                    <description>Description of your modules cache</description>
                    <tags>YOUR_MODULES_CACHE_TAGS</tags>
                </namespace_module>
            </types>
        </cache>
        <!-- Other global config -->
    </global>
    

    The logic for checking if your cache is active or not would be along the lines of the following…

    $cacheGroup = 'namespace_module';
    $useCache = Mage::app()->useCache($cacheGroup);
    if (true === $useCache) {
        // Cache is active
    } else {
        // Cache is not active
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am writing some code that uses the Element.find() method from Python's xml.etree.ElementTree module.
I'm writing a plug-in module for a system that uses CakePHP 1.2 and I
I'm writing a kernel module that needs to read the value of bitrate from
I'm writing some code that uses dynamic shared libraries as plugins. My command line
I'm writing some python code to interact with a C DLL that uses structures
I'm thinking of writing some simple static code analysis that uses class declarations and
I'm writing a module that uses FTPLib to fetch files. I want to find
For the record, I'm a complete Verilog newbie. I'm writing a module that uses
I am writing a simple module that uses Microsoft.Office.Interop.PowerPoint to determine if a PowerPoint
I'm writing a C# .NET module and I would like to use the provider

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.