Jump to content

WillyC

Members
  • Posts

    343
  • Joined

  • Last visited

  • Days Won

    10

Posts posted by WillyC

  1. 1) You can set some fields that load only when you access them.
     

     

    that what.it do already .only autoload field.join w page

     

     

    2) You can set "$config->dbCache = true" for caching the queries.
     

     

    that.what it do already two .you no need two set it

     

     

    3) I think the search is the major problem concerning the memory consumption because by default the PW need to search in every field and so in every DB table. But i made a module that store all the keywords extracted from those fields in only one, doing so PW search in only ONE table without any JOIN.
    

    pw already have.this it called

    fieldtypecache

    • Like 3
  2. /*
    not looka.so nice on pages name.setting tab i changes js.file from this
    */
    
    var $langField = $(".Inputfield").has(".LanguageSupport");
    
    /*
    to this.
    */
    
    var $langField = $(".Inputfield:not(.InputfieldPageName)").has(".LanguageSupport");
     

    uses daveleper.branch i do

  3. what.i use this is

    good it does.work

    top {not buttock}, of  htaccess u

    will.put it . enjoy

    <IfModule mod_expires.c>
      ExpiresActive On
      ExpiresDefault "access plus 1 seconds"
      ExpiresByType image/x-icon "access plus 1 year"
      ExpiresByType image/jpeg "access plus 1 year"
      ExpiresByType image/png "access plus 1 year"
      ExpiresByType image/gif "access plus 1 year"
      ExpiresByType text/css "access plus 1 month"
      ExpiresByType text/javascript "access plus 1 month"
      ExpiresByType application/octet-stream "access plus 1 month"
      ExpiresByType application/x-javascript "access plus 1 month"
    </IfModule>
    
    <IfModule mod_headers.c>
      <FilesMatch "\\.(ico|jpe?g|png|gif|swf|woff)$">
        Header set Cache-Control "max-age=31536000, public"
      </FilesMatch>
      <FilesMatch "\\.(css)$">
        Header set Cache-Control "max-age=2692000, public"
      </FilesMatch>
      <FilesMatch "\\.(js)$">
        Header set Cache-Control "max-age=2692000, private"
      </FilesMatch>
      <FilesMatch "\.(js|css|xml|gz)$">
        Header append Vary: Accept-Encoding
      </FilesMatch>
      Header unset ETag
      Header append Cache-Control "public"
    </IfModule>
    
    <IfModule mod_deflate.c>
      AddOutputFilter DEFLATE js css
      AddOutputFilterByType DEFLATE text/html text/plain text/xml application/xml
      BrowserMatch ^Mozilla/4 gzip-only-text/html
      BrowserMatch ^Mozilla/4\.0[678] no-gzip
      BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
    </IfModule>
     
    • Like 12
    • Thanks 1
  4. hana.pirana  gallery, u type :

    [[gallery tag=pirana]]
    

    ,,gallery,, hana code :

    $fotos=isset($tag)? $page->images->findTag($tag): $page->images; 
    if(count($fotos)) {
      foreach($fotos as $foto) print "<img src=$foto->url>";
    } else {
      print "<img src=/buttocks/fotos/bottolusk.jpg>";
    }
     

    have.this right do i mr.ryan ?

    [[gallery float="right" summary="Colorful photo gallery of Piranhas in action" width="400"]]
    [[image id=789 caption="Adorable Piranhas flocking around my legs"]]
    [[image id=123 caption="Piranhas attacking my legs"]]
    [[image id=456 caption="What was left of my legs after the attack"]]
    [[/gallery]] 

    mind.play.dkk u good  :-*​ 

    • Like 2
  5. this another language.swatch

    work wit any num.languagees

    new localUrl func

    echo "<ul>";
    foreach($languages as $language) {
      $class="$language"=="$user->language" ? "active" : "";
      $url=$page->localUrl($language); 
      echo "<li class=\"$class\"><a href=\"$url\">$language->title</a></li>";
    }
    echo "</ul>"
    
    • Like 7
×
×
  • Create New...