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

ezjscore cache (packed js/css) doesn`t get cleared without purge

    XMLWordPrintable

Details

    Description

      Hi,

      We have noticed a cache problem on eZDFS environments when you run:

      php bin/php/ezcache.php --clear-id=ezjscore-packer
      

      In that case the expired flag index dfs table isn't set to "1". It stays at 0.

      Executing the ezcache.php with the --purge option does seems to work as intended (files are cleared).

      Further info:

      Enabling kernel-clustering debug condition and executing the ezcache script with debug yelds the following info:

      Debug: (<kernel-clustering>)
      dfs::ctor( 'var/ezdemo_site/cache/public' )
      
      Debug: (<kernel-clustering>)
      dfs::delete( 'var/ezdemo_site/cache/public' )
      
      Notice: (cluster::mysql::_delete(var/ezdemo_site/cache/public)::_begin[0 rows, 0.000 ms] query number per page:1)
      BEGIN
      
      Notice: (cluster::mysql::_query[0 rows, 0.001 ms] query number per page:2)
      UPDATE ezdfsfile SET mtime=-ABS(mtime), expired=1 WHERE name_hash=MD5('var/ezdemo_site/cache/public')
      
      Notice: (cluster::mysql::_delete(var/ezdemo_site/cache/public)::_commit[0 rows, 0.000 ms] query number per page:3)
      COMMIT
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            ricardo.correia-obsolete@ez.no Ricardo Correia (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 day, 4 hours, 45 minutes
                1d 4h 45m