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

ezcontentlanguage_cache.php should be read locally in cluster setups

    Details

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

      Description

      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.

        Activity

        Hide
        Carlos Revillo added a comment -

        added a branch in my github account for this
        https://github.com/crevillo/ezpublish/tree/issue-019454
        and the commit...
        https://github.com/crevillo/ezpublish/commit/076fdf0d143ec044b93ba92e97f650f006058313

        no pull request yet, as i'm sure some of you have some opinions to this .

        Cheers

        Show
        Carlos Revillo added a comment - added a branch in my github account for this https://github.com/crevillo/ezpublish/tree/issue-019454 and the commit... https://github.com/crevillo/ezpublish/commit/076fdf0d143ec044b93ba92e97f650f006058313 no pull request yet, as i'm sure some of you have some opinions to this . Cheers

          People

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

            Dates

            • Created:
              Updated: