Skip to content

Remove "MAGE" cache tag #1226

Closed
Closed
@joshua-bn

Description

@joshua-bn

Summary (*)

There is a cache tag named "MAGE" which contains every cache item except config. There's no mechanism to actually do anything with this tag.

I have over 2 million cache items on one of my clusters. I tried loading zc:ti:MAGE (or whatever the key is) and it took so long that I was afraid I'd crash my cluster so I stopped.

Examples (*)

        /**
         * Add global magento cache tag to all cached data exclude config cache
         */
        if (!in_array(Mage_Core_Model_Config::CACHE_TAG, $tags)) {
            $tags[] = Mage_Core_Model_App::CACHE_TAG;
        }

Proposed solution

Remove the code above and any other references to Mage_Core_Model_App::CACHE_TAG. Leave the constant there for backwards compatibility.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions