{"id":6988,"date":"2009-10-17T14:39:12","date_gmt":"2009-10-17T14:39:12","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/cache-translation-object\/"},"modified":"2009-10-23T10:59:40","modified_gmt":"2009-10-23T10:59:40","slug":"cache-translation-object","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/cache-translation-object\/","author":318450,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.2","stable_tag":"1.2","tested":"2.8.5","requires":"2.8","requires_php":"","requires_plugins":"","header_name":"Cache Translation Object","header_author":"Johan Eenfeldt","header_description":"","assets_banners_color":"","last_updated":"2009-10-23 10:59:40","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/devel.kostdoktorn.se\/cache-translation-object\/","header_author_uri":"http:\/\/devel.kostdoktorn.se","rating":0,"author_block_rating":0,"active_installs":0,"downloads":2392,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0","1.1","1.2"],"block_files":[],"assets_screenshots":{"screenshot-1.gif":{"filename":"screenshot-1.gif","revision":"1443670","resolution":"1","location":"plugin","width":500,"height":480},"screenshot-2.gif":{"filename":"screenshot-2.gif","revision":"1443670","resolution":"2","location":"plugin","width":530,"height":273}},"screenshots":{"1":"Administration interface in WordPress 2.8.4","2":"Performance graph of loading an unmodified WordPress 2.8.4 start page"}},"plugin_section":[],"plugin_tags":[146,144,104,1734,247,2333],"plugin_category":[48,52,54],"plugin_contributors":[],"plugin_business_model":[],"class_list":["post-6988","plugin","type-plugin","status-publish","hentry","plugin_tags-cache","plugin_tags-caching","plugin_tags-i18n","plugin_tags-localization","plugin_tags-performance","plugin_tags-translation","plugin_category-language-tools","plugin_category-performance","plugin_category-security-and-spam-protection","plugin_committers-johanee"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/cache-translation-object.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/cache-translation-object\/trunk\/screenshot-1.gif?rev=1443670","caption":"Administration interface in WordPress 2.8.4"},{"src":"https:\/\/ps.w.org\/cache-translation-object\/trunk\/screenshot-2.gif?rev=1443670","caption":"Performance graph of loading an unmodified WordPress 2.8.4 start page"}],"raw_content":"<!--section=description-->\n<p>On every pageload a localized WordPress site spends a huge amount of time setting up the translation (l10n) object. Startup for a localized site can be almost four times slower than an untranslated one.<\/p>\n <p>This plugin stores the translation object between pageloads so it only has to be created once, resulting in significantly better performance (performance graph included with screenshot).<\/p>\n <p>Plugin supports caching multiple languages (if you use a multi-language plugin).<\/p>\n <p>Available storage: Plain file, APC (Alternative PHP Cache), or SHMOP (Shared Memory)<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Download and extract plugin files to a folder in your wp-content\/plugin directory.<\/li>\n<li>Activate the plugin through the WordPress admin interface.<\/li>\n<li>Select an available storage on options page (see FAQ for more details if necessary).<\/li>\n<li>File storage needs write permissions (once) to wp-content after install to set up the directory used for storage (<code>wp-content\/cache\/l10n-cache<\/code>). Once set up is finished wp-content should be kept write protected.<\/li>\n<li>If you run multiple WordPress sites on the same host please consult the plugin homepage for more information.<\/li>\n<\/ol>\n <p>If you have any questions or problems go to: http:\/\/devel.kostdoktorn.se\/cache-translation-object<\/p>\n\n<!--section=faq-->\n<h4>Which storage is better \/ faster?<\/h4>\n <p>The exact performance will depend on your configuration but in my testing APC is a tiny bit faster than shared memory which is a bit faster than plain file storage. Check out the plugin homepage for some graphs.<\/p>\n <h4>What is APC (Alternative PHP Cache)?<\/h4>\n <p>\"The Alternative PHP Cache (APC) is a free and open opcode cache for PHP. Its goal is to provide a free, open, and robust framework for caching and optimizing PHP intermediate code.\"<\/p>\n <p>It is not usually installed by default.<\/p>\n <h4>What is SHMOP (Shared Memory)?<\/h4>\n <p>SHMOP is a PHP interface to handle Unix shared memory segments. It should be available by default on Linux\/Unix servers. On Windows it may be possible to enable in PHP.ini.<\/p>\n <p>On some older systems (and Windows) shared memory may have problems when multiple languages are cached. (If <code>Open slots<\/code> in the debug storage information keeps decreasing you should choose a different storage type.)<\/p>\n <h4>How do I make files writable?<\/h4>\n <pre><code>http:\/\/codex.wordpress.org\/Changing_File_Permissions <\/code><\/pre>\n <p>File storage write files to <code>wp-config\/cache\/l10n-cache\/<\/code>. These directories will be created automatically if <code>wp-config<\/code> is writable at first use. Once these sub-directories are created <code>wp-config<\/code> should be kept write protected.<\/p>\n <h4>I want to change where the files are stored<\/h4>\n <p>Currently you'll have to do it by hand. Find it at the top of wp-content\/plugin\/cache-translation-object\/cache-translation-object-file.php<\/p>\n\n<!--section=changelog-->\n<h4>Version 1.2<\/h4>\n <ul>\n<li>Whitelist get_locale calls to filter<\/li>\n<\/ul>\n <h4>Version 1.1<\/h4>\n <ul>\n<li>Rewritten to cache multiple locales separately<\/li>\n<li>Split out admin functions into separate file<\/li>\n<li>Handle old SHM with questionable delete behaviour by relocating as necessary.<\/li>\n<li>Add storage debug info link<\/li>\n<li>Do not default to any specific storage type, make user choose<\/li>\n<li>Tell admin when something is wrong (also better error handling).<\/li>\n<li>Added plugin localization<\/li>\n<li>Added Swedish translation<\/li>\n<\/ul>\n <h4>Version 1.0<\/h4>\n <ul>\n<li>Initial release<\/li>\n<\/ul>","raw_excerpt":"Substantially increase performance of localized WordPress by caching the translation (l10n) object. Supports multiple languages.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/6988","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=6988"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/johanee"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=6988"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=6988"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=6988"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=6988"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=6988"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=6988"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}