KieranA's Profile
Reputation: 7
Neutral
- Group:
- Members
- Active Posts:
- 352 (0.38 per day)
- Joined:
- 11-November 09
- Profile Views:
- 6,893
- Last Active:
Jan 03 2012 09:46 PM- Currently:
- Offline
My Information
- Member Title:
- Advanced Member
- Age:
- Age Unknown
- Birthday:
- Birthday Unknown
- Gender:
-
Male
Contact Information
- E-mail:
- Private
- Website URL:
-
http://kieranallen.com
Users Experience
- Experience:
- Nothing
- Area of Expertise:
- Nothing
Posts I've Made
-
In Topic: Caching with APC
02 January 2012 - 01:36 PM
-
In Topic: Caching with APC
01 January 2012 - 10:41 PM
rallport, 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. -
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); -
In Topic: Junior PHP Developer
01 June 2011 - 03:31 PM
This is a full time, on-site position. -
In Topic: questions about blogs
30 May 2011 - 03:56 PM
kensha, 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
- Images relating to content
Help




Find My Content
Display name history
Comments
KieranA has no profile comments yet. Why not say hello?