[pLog-svn] r2954 - plog/trunk/class/data/Date

Oscar Renalias oscar at renalias.net
Wed Feb 15 17:22:13 GMT 2006


Ok, just checking :-)

In the meantime, I got renalias.net up and running with the most  
recent version of the trunk. It seems to work much faster and the  
average memory consumption is between 4.0-6.0mb according to 1.1's  
tmp/metric.log file, which is probably an even more important  
achievement than any speed gains if you ask me!

There are still a few things here and there that don't work very well:

- there's a problem again with custom urls with dates in them (like  
permalinks), so I've switched to plain urls.
- paging doesn't seem to work very well
- error.php seems to be the slowest script of all and it seems like  
it is being called too often like when for example the browser tries  
to load favicon.ico and it doesn't exist. At least this Safari this  
happens once a request, so loading renalias.net means two full loads  
of the blog: one for the content that the browser will display and  
another one for favicon.
- lots of little things in the admin interface

But I think that it is a good start anyway :-)

Oscar

On 15 Feb 2006, at 18:59, Jon Daley wrote:

> 	The merge was probably difficult, so stuff got commented out then.
>
> ---------------------------------------------------------------------- 
> --
> r2141 | ork | 2005-05-31 15:17:49 -0400 (Tue, 31 May 2005) | 2 lines
>
> merged 1.1-ben with the trunk. i'm sorry, a few views are broken  
> now, i'll do my best to get the trunk back in a stable state
>
>
>
> On Wed, 15 Feb 2006, oscar at devel.lifetype.net wrote:
>
>> Author: oscar
>> Date: 2006-02-15 16:39:53 +0000 (Wed, 15 Feb 2006)
>> New Revision: 2954
>>
>> Modified:
>>   plog/trunk/class/data/Date/Calc.class.php
>> Log:
>> another missing method. Who commented out these methods anyway?
>>
>>
>> Modified: plog/trunk/class/data/Date/Calc.class.php
>> ===================================================================
>> --- plog/trunk/class/data/Date/Calc.class.php	2006-02-15 16:38:13  
>> UTC (rev 2953)
>> +++ plog/trunk/class/data/Date/Calc.class.php	2006-02-15 16:39:53  
>> UTC (rev 2954)
>> @@ -708,23 +708,23 @@
>> //     * @return string date in given format
>> //     */
>> //
>> -//    function prevDay($day='',$month='',$year='',$format='%Y%m%d')
>> -//    {
>> -//        if (empty($year)) {
>> -//            $year = Date_Calc::dateNow('%Y');
>> -//        }
>> -//        if (empty($month)) {
>> -//            $month = Date_Calc::dateNow('%m');
>> -//        }
>> -//        if (empty($day)) {
>> -//            $day = Date_Calc::dateNow('%d');
>> -//        }
>> +    function prevDay($day='',$month='',$year='',$format='%Y%m%d')
>> +    {
>> +        if (empty($year)) {
>> +            $year = Date_Calc::dateNow('%Y');
>> +        }
>> +        if (empty($month)) {
>> +            $month = Date_Calc::dateNow('%m');
>> +        }
>> +        if (empty($day)) {
>> +            $day = Date_Calc::dateNow('%d');
>> +        }
>> +
>> +        $days = Date_Calc::dateToDays($day,$month,$year);
>> +
>> +        return(Date_Calc::daysToDate($days - 1,$format));
>> +    } // end func prevDay
>> //
>> -//        $days = Date_Calc::dateToDays($day,$month,$year);
>> -//
>> -//        return(Date_Calc::daysToDate($days - 1,$format));
>> -//    } // end func prevDay
>> -//
>> //    /**
>> //     * Sets century for 2 digit year.
>> //     * 51-99 is 19, else 20
>>
>> _______________________________________________
>> pLog-svn mailing list
>> pLog-svn at devel.lifetype.net
>> http://devel.lifetype.net/mailman/listinfo/plog-svn
>>
>
> **************************************
> Jon Daley
> http://jon.limedaley.com/
>
> It's a question of whether we're going to go forward
> into the future, or past into the back.
> -- Dan Quayle
> _______________________________________________
> pLog-svn mailing list
> pLog-svn at devel.lifetype.net
> http://devel.lifetype.net/mailman/listinfo/plog-svn
>



More information about the pLog-svn mailing list