SocialEngine Blog

SocialEngine is the best way to create a unique community website. Let your friends, fans or customers geek out about anything you want.

Ask John: Caching, Linux vs. Windows, and Cookies

You all gave us great questions for our ASK JOHN feature.

Caching

Could you explain the benefits to using the various caching options in SocialEngine (File-Based, Memcache, APC, and Xcache)?

Data caching stores data that is used often but changed infrequently in memory so that it is readily available to the application. Bytecode caching (APC, Xcache) reduces processing power used by interpreting the PHP scripts by only interpreting the PHP file when it’s changed. Both will speed up PHP applications by quite a bit. Memcache caching (if available) will use memory (RAM) which is not as abundant as disk space, however it will be faster than file-based caching when performing read/write operations. If you’d like to learn more about caching, check out this in-depth documentation.

 

Linux vs. Windows


What is the preferred server Linux or Windows- which flavor of Linux to use from: RedHat and CentOS, and Ubuntu?

The code is optimized for what’s available in Linux, not Windows.
Any linux distro should work fine, but Ubuntu is the easiest to install dependencies. I recommend Ubuntu because it’s reasonably up-to-date and relatively easy to install missing dependencies. Matt has written an excellent blog about how to select a server for your community

Cookies


Are cookies used by Social Engine in accordance with the current UK and EU Cookie Law?

Cookies used in SocialEngine should be compliant with these laws because everything that members signup for in SocialEngine requires them to give permission and access. Here are the following cookies that SocialEngine uses:

 

SocialEngine Core

PHPSESSID – used to track login state
en4_install – used to track login state for the package manager
en4_language – stores the language chosen
en4_locale – stores the locale chosen
en4_maint_code – stores the admin maintenance passcode
theme – stores the chosen site theme

 

SocialEngine Chat

n4_chat_room_last – stores the identifier of the last chat room the user joined, used to rejoin the same chat on return
en4_chat_whispers_active – stores a list of active conversation identifiers, used to persist maximize/minimize state of IM conversations across page loads
en4_chat_imstate – stores the last chosen active state (Available, Busy, Away) to preserve the setting across page loads
en4_whispers_unread_* – stores whether or not the user has read the latest message in a particular conversation, used to preserve state across page loads

Please note that this list only includes the cookies created by our software. This does not include cookies created by any third-party plugins or services.

That’s all for now! As mentioned before, we plan to run this feature every few weeks, so post any questions you have below, and we’ll select some to ask John. Don’t be shy about letting us know if this is too technical, not technical enough, or exactly what you’d hoped for!

2 Comments

  1. John
    Posted June 27, 2012 at 10:51 pm | Permalink

    How to disable xyz has commented on a photo you commented on.

    Seem this problem been going on for 2 years and been ignored

    http://socialenginebase.net/viewtopic.php?f=38&t=4449

  2. saii
    Posted December 18, 2012 at 8:37 am | Permalink

    we are entering 2013……still ur struglin on a pop messaging feature thinking that is the biggest deal….grow up guys……on ur computers and check the latest website……stop copying facebook-twitter….ect and stuffing here
    ..try to give some eary quick features to members….and what is this select network…..insteatd of it…y dnt u give…continent-country-city a scroll tab and then save…..huh

Post a Comment

You must be logged in to Post a Comment.