Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-19454

ezcontentlanguage_cache.php should be read locally in cluster setups



    • Type: Improvement
    • Status: Open
    • Priority: Medium
    • Resolution: Unresolved
    • Affects Version/s: 2012.4, 4.7.0-dev
    • Fix Version/s: None
    • Component/s: Legacy > Clustering
    • Labels:


      Hi. please correct if i'm wrong, but as far i see, having a dfs cluster setup, ezcontentlanguage_cache.php is always read from the nfs (and i think contents are taking from database if ezdbfilehandler is used...)

      don't you think that this file could be read locally as it happens with view-cache or template-block files?

      Further more, this "list of languages" shouldn't change lot of times in the lifetime of a project, imho...

      i've been working on it and i have a patch for this. i've tested it with ezfsfilehandler, ezdfsfilehandler and ezdbfilehandler and it's working ok, but surely needs more testing.

      the idea is takeng from eznodeviewfunctions (contentRetrieve, contentGenerate), so please let me know if this is a bad idea.

      With the patch enabled, it seems we gain a database call...

      Adding the issue now to be referred in my commit. come back with the patch soon

      Steps to reproduce

      1. just do a fresh install and enable ezdb / ezdfscluster

      2. play with your languages adding / removing some of them.
      3. check your /[nfs]/var/[yourfiles]/cache/ezcontenlanguage_cache.php

      this files changes but it's never stored locally.




            • Assignee:
              unknown unknown
              desorden Carlos Revillo
            • Votes:
              0 Vote for this issue
              0 Start watching this issue


              • Created: