[pLog-svn] r2047 - plog/branches/plog-1.1-ben/class/dao
ork at devel.plogworld.net
ork at devel.plogworld.net
Sun May 22 17:05:27 GMT 2005
Author: ork
Date: 2005-05-22 17:05:27 +0000 (Sun, 22 May 2005)
New Revision: 2047
Modified:
plog/branches/plog-1.1-ben/class/dao/mylinks.class.php
Log:
mhh.. this is not good yet.. i'll rewrite this shortly .. i guess we will need some new methods to handle the extra dimension linkCategroy .. too bad ..
Modified: plog/branches/plog-1.1-ben/class/dao/mylinks.class.php
===================================================================
--- plog/branches/plog-1.1-ben/class/dao/mylinks.class.php 2005-05-22 16:57:59 UTC (rev 2046)
+++ plog/branches/plog-1.1-ben/class/dao/mylinks.class.php 2005-05-22 17:05:27 UTC (rev 2047)
@@ -24,7 +24,7 @@
{
$blogLinks = $this->_cache->getData( $blogId, CACHE_BLOGLINKS );
- if ( !$blogLinks ) {
+ if ( !$blogLinks || $page != -1) {
// check if we're using any paging
if( $page > -1 ) {
$start = (($page - 1) * $itemsPerPage);
@@ -49,7 +49,10 @@
$blogLink = $this->_fillMyLinkInformation( $row );
array_push( $blogLinks, $blogLink );
}
- $this->_cache->setData( $blogId, CACHE_BLOGLINKS, $blogLinks );
+
+ if ( $page != -1 )
+ $this->_cache->setData( $blogId, CACHE_BLOGLINKS, $blogLinks );
+
}
return $blogLinks;
More information about the pLog-svn
mailing list