Monday, September 29th, 2008
I think I’ve fixed a problem with caching of non-ports. I was looking for something to do tonight after I could not sleep. I found a old post about a this issue and figured I could fix it.
The fix is in BETA. I’ll monitor it for a while before pushing it to […]
Posted in Bug fixes, Caching, Development | No Comments »
Friday, July 11th, 2008
Cydex mentioned to me today:
dvl: /UPDATING and /MOVED don’t seem to be updating on FreshPorts
My response, ever so witty:
dvl: /UPDATING and /MOVED don’t seem to be updating on FreshPorts
I started comparing the production website with the one I run at home. The UPDATING pages differed. So did the MOVED pages.
I started looking at […]
Posted in Bug fixes, Caching | No Comments »
Tuesday, October 16th, 2007
Since FreshPorts started caching the HTML, the watch list count started to lag. At present, it is refreshed only when the port is updated. The BETA website has a patch for this. It should go into production soon.
To play with the patch, login at the BETA website, and add/remove a port to/from […]
Posted in Bug fixes, Caching, Watch Lists | 1 Comment »
Sunday, October 7th, 2007
Late last night, I wrote about a problem with virtual categories. I’ve been unable to reproduce the problem in test. But I did find the problem in production.
[dan@supernews:/usr/websites/freshports.org/scripts] $ touch ../dynamic/www.en.ports.categories
[dan@supernews:/usr/websites/freshports.org/scripts] $ sh process_www_en_ports_categories.sh
about to fetch: fetch -q -o /usr/websites/freshports.org/dynamic/caching/tmp/categories http://www.freebsd.org/cgi/cvsweb.cgi/~checkout~/www/en/ports/categories?rev=HEAD&content-type=text/plain
Can’t locate Text/CSV_XS.pm in @INC (@INC contains: /usr/local/lib/perl5/5.8.8/BSDPAN /usr/local/lib/perl5/site_perl/5.8.8/mach /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.8.8/mach /usr/local/lib/perl5/5.8.8 […]
Posted in Bug fixes, Caching, FreeBSD | No Comments »
Tuesday, February 13th, 2007
I have written much about caching. FreshPorts has over 500,000 pages. Only a handful of those pages are static, the rest are generated from the database. Sometimes it takes a while to generate that page. To reduce the load on the server and make the website snappier for the user, page […]
Posted in Caching, Development | No Comments »
Tuesday, August 1st, 2006
Last night I discovered a caching bug related to vuxml processing. I fixed it. Today I realized the same issue affects processing of MOVED and UPDATING. Coded both of them today as well. Anyone got a MOVED or UPDATING commit just waiting to happen? ;)
Ideally, I’d be able to find somewhere […]
Posted in Bug fixes, Caching, Development, New ideas | No Comments »
Monday, July 31st, 2006
Today I discovered and fixed two problems with VUXML processing.
The cronjob that processed VUXML changes was commented out. The last time it had run was July 9th. Uncommenting the entry fixed that issue.
The VUXML processing did not clear the cache. I wrote and testing that code just now. It’ll run in […]
Posted in Bug fixes, Caching, Development | No Comments »
Sunday, July 23rd, 2006
Royce Williams wrote in with a good suggestion about the watch list interface. When I read it, I immediately new it was a good idea.
Royce said the existing icons for adding and removing a port from the watch list were not intuitive. He suggesting using as a base, and putting […]
Posted in Announcements, Bug fixes, Caching, Watch Lists | No Comments »
Thursday, June 29th, 2006
I’ve managed to fix the caching problem previously mentioned. I think I solved it the night I wrote about it, but I’m only writing about it now. The code has been in BETA since then and has just moved into production.
The log output now looks more like this:
Observer has noticed that processing has […]
Posted in Caching, Development | No Comments »
Tuesday, June 27th, 2006
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 .
[…]
Posted in Bug fixes, Caching | 2 Comments »