Web Design Forum: KieranA - Viewing Profile - Web Design Forum

Jump to content

WDF
WDF Premium Memberships Reseller Hosting

KieranA's Profile User Rating: -----

Reputation: 7 Neutral
Group:
Members
Active Posts:
352 (0.38 per day)
Joined:
11-November 09
Profile Views:
6,893
Last Active:
User is offline Jan 03 2012 09:46 PM
Currently:
Offline

My Information

Member Title:
Advanced Member
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:
Male Male

Contact Information

E-mail:
Private
Website URL:
Website URL  http://kieranallen.com

Users Experience

Experience:
Nothing
Area of Expertise:
Nothing

Posts I've Made

  1. In Topic: Caching with APC

    02 January 2012 - 01:36 PM

    View Postrallport, on 02 January 2012 - 10:07 AM, said:

    That's the main thing I'm worried about really - haven't really been able to find any guidelines on it either. All the documentation seems to be for caching key/values :(


    The value simply means any data. It'll be fine, store your HTML in APC :)
  2. In Topic: Caching with APC

    01 January 2012 - 10:41 PM

    View Postrallport, on 01 January 2012 - 10:33 PM, said:

    Yer, that's essentially what the class does, but a little cleaner.

    Just wondered if anyone saw any issues with this, as I'm caching whole pages using APC which will take up more memory.


    If it's only HTML then you should be fine - but to be sure you should run a quick audit on the site and figure out the overall size of the dataset.
  3. In Topic: Caching with APC

    01 January 2012 - 05:06 PM

    APC is a good idea - however, what happens if memory is emptied on the server? Here is what I would recommend:

    1. Check APC to see if the key/data exists
    2. If #1 returns false, select from database.
    3. After #2 save to memory via APC.

    You don't need a special class to cache data, you could quite simply buffer the output of the view, example:


    
    // Is it already saved in memory?
    $content = apc_fetch('page_name');
    
    if ($content) {
        echo $content;
        exit;
    }
    // otherwise query the database...
    ob_start();
    
    echo $data_from_database;
    
    $data = ob_get_contents();
    apc_store('page_name', $data);
    
  4. In Topic: Junior PHP Developer

    01 June 2011 - 03:31 PM

    This is a full time, on-site position.
  5. In Topic: questions about blogs

    30 May 2011 - 03:56 PM

    View Postkensha, on 30 May 2011 - 03:25 PM, said:

    Alright here it's written I hope itīs any good.

    http://vragame.blogs...ts-saviors.html
    Maby add pictures, screenshots of the game?


    Yes, you need to break up the content. Some tips;

    • Images relating to content
    • Headings should be bold/bigger
    • Provide a few links at the bottom of the article, which relate to the game - link to game.co.uk to buy it or something. You could potentially use an affiliate link to make some money.
    • Bullet point summary (at the end) - for those who don't want to read the whole article

Friends

Comments

KieranA has no profile comments yet. Why not say hello?