Place to cache $content

We use Panels and Views extensively and output is usually done via teaser lists. However, we're having serious performance issues with some views...the views_build_view() function can easily take 7 seconds in my environment and there are several views in different Panels.

The thing is that the content part of the page is really quite static and not user-aware, despite all the elements in it. I'd like to cache the whole lot and then bypass Views and Panels entirely.

NodeCount

hi everyone,

the below code works.


<?php
function getNodeCount($tid)
{
$sql = "select count(1) as num"
. " from term_node"
. " where tid = $tid";
return ($acount = db_fetch_object(db_query($sql)))? $acount->num : 0;
}

function getChildTerms($parent, $vid)
{
$sql = "select td.tid, td.vid, td.name"
. " from term_data td"
. " join term_hierarchy th on th.tid = td.tid"
. " where th.parent = $parent"
. " and td.vid = $vid"
. " order by td.weight, td.name";
$terms = db_query($sql);
$output = "";
while ($aterm = db_fetch_object($terms))
{
$output .= "

  • tid/0/feed'> "
    . "tid'>$aterm->name ("
    . getNodeCount($aterm->tid).")
  • \n"
    . getChildTerms($aterm->tid, $vid);
    }
    return ($output != "")? "

      \n" . $output . "

    \n" : "";
    }

    $sql = "select vid, name from vocabulary where name in ('directory', 'shopping') order by name";
    $vocabularies = db_query($sql);
    $output = "";
    while ($avoc = db_fetch_object($vocabularies))
    {
    $output .= "

  • $avoc->name
  • \n"
    . getChildTerms(0, $avoc->vid);
    }

    How to make our website to open a weblink in new window

    Hello,

    I have a webste called www.letusresolve.com

    It is a technical forum for helping people who love to learn technologies. In this we will post lot of technical information and web links.
    My issue is,if a user clicks on web link. The site is getting open on same page itself. I want to make the site to open in a new page. so that users can stay long with my website.

    Someone Please Help Me ......

    I will respect your Advice

    Thanks & Regards
    Nagendran

    Maintenance modules?

    Are there any modules that have been created to notify users that the site will be under-going maintenance in X amount of time etc? If not I will probably go ahead and create something like this I would just much rather notify users rather than just setting the site to off line for maintenance

    caching and mod_expire

    I am using hostmonster.com to host my site (allthingsvoted.com), and was told they don't have mod_expire installed. So any other solutions to the caching problems? Now each time I have to reload my page to get latest content. Any hostmonster user here? Thanks!

    Q: Is it possible to run one Drupal install across different servers?

    I currently am running about 10 domains all on one server using the multisite.

    I am looking to scale out to a new server and was wondering if it is possible to somehow use the same Drupal information on this new server.

    The best I have come up with is sharing the database and then copying all the Drupal files to the new server but it still bothers me because I will now have to update modules on both servers.

    Is there anyway to sync the 2 servers or have one Drupal install or anything? Perhaps some type of XML-RPC solution?

    Pages

    Subscribe with RSS Subscribe to RSS - Deprecated - Performance and scalability