Cache removal problems

I found out exactly why the cache was not being cleared. Incorrect code.

< my $CachingFile = $FreshPorts::Config::CachingRoot . 
         '/cache/' . $category_name . '.' . $port_name;
---
> my $CachingFile = $FreshPorts::Config::CachingRoot . 
         '/cache/ports/' . $category_name . '/' . $port_name . 
         '.*.html';

The first line is the existing production code. It refers to the old caching method, which was everything in one directory. The new strategy puts ports into a layered cached that reflects the directories in the ports tree.

Part of the problem is using PHP to create cache entries, and Perl to remove the cache entries. It is harder to keep the code in sync. The PHP code is used by the website. The Perl code is used to process incoming commits.

Even with fixing this error, the window [mentioned in the previous post] must be closed.

Website Pin Facebook Twitter Myspace Friendfeed Technorati del.icio.us Digg Google StumbleUpon Premium Responsive

2 thoughts on “Cache removal problems”

  1. I am working with socket programming which receives the values from the port 29999. I was not able to receive live data coming to my port. I am getting only previous data. After a long time I found that the internal cache memory is not cleared.

    When I send headers through my program I got live data. Next time when I run the same program I am receiving the old data again.

    I do not know what is the problem.

    Please reply immediately.

Leave a Comment

Scroll to Top