Zend Framework

Tags should be emulated when they are not supported

Details

  • Type: Docs:  Improvement Docs: Improvement
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Won't Fix
  • Affects Version/s: None
  • Fix Version/s: Next Major Release
  • Component/s: Zend_Cache
  • Labels:
    None

Description

Actually the documentation notes TAGS as best variant to be used for cleaning cache entries.
This is only the case for 2 or 3 of the supported backends.

All backends which do not support tags should emulate tags within Zend_Cache when possible.

Activity

Hide
Matthew Weier O'Phinney added a comment -

The TwoLevels backend adapter is intended for this very purpose; Fabien, can you comment? If that's all that's needed, we simply need to document this clearly so users know what to do.

Show
Matthew Weier O'Phinney added a comment - The TwoLevels backend adapter is intended for this very purpose; Fabien, can you comment? If that's all that's needed, we simply need to document this clearly so users know what to do.
Hide
Fabien MARTY added a comment -

I agree with you Matthew.

I will add a note into the documentation

Show
Fabien MARTY added a comment - I agree with you Matthew. I will add a note into the documentation
Hide
Aleksi Ursin added a comment -

Last time i checked the documentation, i didn't see clearly on the documentation that ie. Memcached lacks this support (No key based deletions for us, which means memcached is a no-go! Which means we need to go around this problem).

It should be reading big red on the cleaning section of the documentation, cat sized letters even As it is now, makes the impression it is supported in every engine.

Memcached should have optional, easy, "virtual" tags support somehow, even if it means employing a secondary engine, temp files etc. On ZF-4253 i specified how it could potentially work.

Show
Aleksi Ursin added a comment - Last time i checked the documentation, i didn't see clearly on the documentation that ie. Memcached lacks this support (No key based deletions for us, which means memcached is a no-go! Which means we need to go around this problem). It should be reading big red on the cleaning section of the documentation, cat sized letters even As it is now, makes the impression it is supported in every engine. Memcached should have optional, easy, "virtual" tags support somehow, even if it means employing a secondary engine, temp files etc. On ZF-4253 i specified how it could potentially work.
Hide
Marc Bennewitz (private) added a comment -

Hi,

I'm working on a Zend_Cache refactoring proposal.
This would implement a virtual tags support by frontend if the backend doesn't support it.

Please take a look and tell your opinions.

Show
Marc Bennewitz (private) added a comment - Hi, I'm working on a Zend_Cache refactoring proposal. This would implement a virtual tags support by frontend if the backend doesn't support it. Please take a look and tell your opinions.
Hide
Fabien MARTY added a comment -

change Assignee because I'm inactive now

Show
Fabien MARTY added a comment - change Assignee because I'm inactive now
Hide
Cristian Bichis added a comment -

So it's confirmed that Two Level cache is overcoming the problem with clearing by tags ?

Because i haven't saw anything in docs to sustain this...

Show
Cristian Bichis added a comment - So it's confirmed that Two Level cache is overcoming the problem with clearing by tags ? Because i haven't saw anything in docs to sustain this...
Hide
Marc Bennewitz (private) added a comment -

If you would like to use tags with the TwoLevels cache only the slow backend needs tag support because tags will only be stored on slow backend and on cleaning by tags the slow backend will be requested to find ids to clean on both.

Show
Marc Bennewitz (private) added a comment - If you would like to use tags with the TwoLevels cache only the slow backend needs tag support because tags will only be stored on slow backend and on cleaning by tags the slow backend will be requested to find ids to clean on both.
Hide
Marc Bennewitz (private) added a comment -

This issue won't be fixed in ZF1.
-> see ZF2-137

Show
Marc Bennewitz (private) added a comment - This issue won't be fixed in ZF1. -> see ZF2-137

People

Vote (3)
Watch (4)

Dates

  • Created:
    Updated:
    Resolved: