Ticket #170 (closed defect: duplicate)

Opened 6 months ago

Last modified 6 months ago

xcache loads cached PHP files when directory name is changed

Reported by: Dark Light Owned by: moo
Priority: major Milestone:
Component: cacher Version: 1.2.2
Keywords: Cc:
Blocked By: PHP Version: 5.2.3
Application: Need User Feedback: no
Other Exts: SAPI: apache2handler
Probability: Always Blocking:

Description

xcache loads cached PHP files when directory name is changed

xcache will load a pre-compiled PHP file if the directory name is changed. For example:

+ Create folder1 + Create file1.php ++ Inside file1 type:

<?php echo dirname(FILE); ?>

+ Save file1.php + Browse to http://dom.ext/folder1/file1.php + Copy contents to text editor

+ Rename folder1 to folder2. Keep file1.php name intact. + Browse to http://dom.ext/folder2/file1.php + Copy contents to text editor

+ You will notice the contents are the same and xcache is using the older version of the PHP script even though clearly the directory path has changed.

-- Note: Might not be an xcache bug, but it's annoying and replicable on other systems all the same. Happens with APC (Alternative PHP Cache) too.

Thank you, Best Regards,

Change History

Changed 6 months ago by Dark Light

Note: Ticket system altered PHP code. It should be:

<?php echo dirname(__FILE__); ?>

Changed 6 months ago by Dark Light

Just noticed already reported here:

http://xcache.lighttpd.net/ticket/117

Sorry for the inconvenience!

Changed 6 months ago by moo

  • status changed from new to closed
  • resolution set to duplicate

duplicate of #117

Note: See TracTickets for help on using tickets.