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

Static cache uses old cache to create new cache on publishing

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 3.10.1, 3.9.5, 4.0.1, 4.1.0alpha1
    • 3.8.4
    • Documentation, Misc
    • None
    • Version: tested on 3.8.4
      PHP Version:
      Webserver:
      Database:

    Description

      The old cache files do not get deleted, but the new ones (when publishing content) are created the same way as the script does: by doing a request to the web server with file_get_contents. So you just get the content of your old cache files back :-D

      A quick fix: in kernel/classes/ezstaticcache.php, function executeActions, right after:

      case 'store':
      list( $destination, $source ) = $parameters;
      if ( ! isset( $fileContentCache[$source] ) )
      {

      add this code:

      // remove old cache file before retrieving the content
      unlink( $destination );

      Attachments

        Activity

          People

            gl gl
            cyberwolf cyberwolf
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: