Doctrine 1
  1. Doctrine 1
  2. DC-1001

Doctrine Caching page does not mention the "prefix" option

    Details

    • Type: Documentation Documentation
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Caching, Documentation
    • Labels:
      None

      Description

      http://www.doctrine-project.org/documentation/manual/1_1/en/caching

      When not using a prefix with multiple / yet similay projects a mixup of query caching will occur (for example with sfDoctrineGuard queries). This is very easialy fixed with a prefix - but I only realized after two months - that this feature actually existed. There is no mention of this in the documention.

      A mention of the feature

      $q = Doctrine_Query::create()
      ->useResultCache(new Doctrine_Cache_Apc(array('prefix'=>'myproject_')));

      Would have helped me and I think it will also help others.

        Activity

        Hide
        Pablo Grass added a comment -

        I concur with Arend - mentioning of 'prefix' in the documentation could make this valuable feature much less of a pain to find...
        Still holds true in 1.2. documentation: http://www.doctrine-project.org/projects/orm/1.2/docs/manual/caching/en

        Show
        Pablo Grass added a comment - I concur with Arend - mentioning of 'prefix' in the documentation could make this valuable feature much less of a pain to find... Still holds true in 1.2. documentation: http://www.doctrine-project.org/projects/orm/1.2/docs/manual/caching/en

          People

          • Assignee:
            Roman S. Borschel
            Reporter:
            Arend van Waart
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: