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

(tc-676) Template cache stored locally on dfs cluster mode (mysqli)

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Low Low
    • Resolution: Unresolved
    • Affects Version/s: 4.6.0beta1
    • Component/s: Caching
    • Labels:
      None
    • Environment:

      Operating System: RHEL 6.1
      PHP Version: 5.3.3
      Database and version: mysql 5.1.52
      Browser (and version): ff7

      Description

      When using ezpublish in a dfs cluster mode, the template cache is store in local /var/cache/template not in the shared dfs mount (/mnt/ezdfs/var/cache/template)

      This can be checked on steps 18 to 21 of the attached test case (steps to reproduce)

      Steps to reproduce

      1.  In a Putty windows, go to ezp root directory
      2.  Run the following script:
          php bin/php/ezcache.php -s ezflow_site_admin --clear-id=template-block
      3. Verify that the following message is displayed:
          Clearing template-block:
          Template block cache
      4.  Go to the cluster shared folder:
           /mnt/ezdfs/var/ezflow_site/cache
      5.  Verify that template-block flder is present
      6.  Verify that a file named expiry.php was created
      7.  Open expiry.php file
      8.  Verify that template-block-cache is present on the file to expire
      9.  Return to ezp root directory
      10.  Run the following script:
            php bin/php/ezcache.php -s ezflow_site_admin --clear-id=template-block --purge
      11.  Verify that the following message is displayed:
            Purging template-block:
            Template block cache
      12.  Go to the cluster shared folder:
            /mnt/ezdfs/var/ezflow_site/cache
      13.  Verify that template-block no longer exists
      14.  Run the following script:
            php bin/php/ezcache.php -s ezflow_site_admin --clear-id=content --purge
      15.  Verify that the following message is displayed:
            Purging content:
            Content view cache/
      16.  Go to the cluster shared folder:
            /mnt/ezdfs/var/ezflow_site/cache
      17.  Verify that content folder no longer exists
      18.  Run the following script:
            php bin/php/ezcache.php -s ezflow_site_admin --clear-id=template --purge
      19.  Verify that the following message is displayed:
            Purging template:
            Template view cache/
      20.  Go to the cluster shared folder:
            /mnt/ezdfs/var/ezflow_site/cache
      21.  Verify that Template folder no longer exists
      22.  Run the following script:
            php bin/php/ezcache.php -s ezflow_site_admin --clear-id=user_info_cache
      23. Verify that the following message is displayed:
            Clearing user_info_cache:
            User info cache
      24.  Go to the cluster shared folder:
            /mnt/ezdfs/var/ezflow_site/cache
      25.  Verify that user_info_cache: folder is present
      26.  Verify that a file named expiry.php was created
      27.  Open expiry.php file
      28.  Verify that user_info_cache: is present on the file to expire
      29.  Run the following script:
            php bin/php/ezcache.php -s ezflow_site_admin --clear-id=user_info_cache --purge
      30.  Verify that the following message is displayed:
            Purging user_info_cache:
            User info cache
      31.  Go to the cluster shared folder:
            /mnt/ezdfs/var/ezflow_site/cache
      32.  Verify that user_info_cache: follder no longer exists
      
      

        Issue Links

          Activity

          Hide
          Vidar Langseid added a comment -

          The question to devs here is whatever dfs:/var/cache/template is supposed to be there and store template cache or not.. IF not, Test case needs simply to be changed accordingly

          Show
          Vidar Langseid added a comment - The question to devs here is whatever dfs:/var/cache/template is supposed to be there and store template cache or not.. IF not, Test case needs simply to be changed accordingly
          Hide
          Vidar Langseid added a comment -

          According to bd,
          template cache is supposed to be stored only locally ( var/... ) not in dfs ( dfs:/mnt/ezdfs/var/....)
          template block cache is supposed to be stored both places

          so TC needs to be adjusted around step 19...

          Show
          Vidar Langseid added a comment - According to bd, template cache is supposed to be stored only locally ( var/... ) not in dfs ( dfs:/mnt/ezdfs/var/....) template block cache is supposed to be stored both places so TC needs to be adjusted around step 19...

            People

            • Assignee:
              unknown
              Reporter:
              João Pingo
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated: