Title: Cache Translation Object
Author: johanee
Published: <strong>17 اکتبر 2009</strong>
Last modified: 23 اکتبر 2009

---

جستجوی افزونه‌ها

این افزونه **با ۳ نگارش عمدهٔ اخیر وردپرس آزمایش نشده است**. ممکن است دیگر نگهداری
یا پشتیبانی نشود و هنگام استفاده با نگارش‌های تازه‌تر وردپرس مشکل سازگاری داشته 
باشد.

![](https://s.w.org/plugins/geopattern-icon/cache-translation-object.svg)

# Cache Translation Object

 توسط [johanee](https://profiles.wordpress.org/johanee/)

[دانلود](https://downloads.wordpress.org/plugin/cache-translation-object.1.2.zip)

 * [جزئیات](https://fa.wordpress.org/plugins/cache-translation-object/#description)
 * [نقد و بررسی‌ها](https://fa.wordpress.org/plugins/cache-translation-object/#reviews)
 *  [نصب](https://fa.wordpress.org/plugins/cache-translation-object/#installation)
 * [توسعه](https://fa.wordpress.org/plugins/cache-translation-object/#developers)

 [پشتیبانی](https://wordpress.org/support/plugin/cache-translation-object/)

## توضیحات

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.

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).

Plugin supports caching multiple languages (if you use a multi-language plugin).

Available storage: Plain file, APC (Alternative PHP Cache), or SHMOP (Shared Memory)

## عکس‌های صفحه

[⌊Administration interface in WordPress 2.8.4⌉⌊Administration interface in WordPress
2.8.4⌉[

Administration interface in WordPress 2.8.4

[⌊Performance graph of loading an unmodified WordPress 2.8.4 start page⌉⌊Performance
graph of loading an unmodified WordPress 2.8.4 start page⌉[

Performance graph of loading an unmodified WordPress 2.8.4 start page

## نصب

 1. Download and extract plugin files to a folder in your wp-content/plugin directory.
 2. Activate the plugin through the WordPress admin interface.
 3. Select an available storage on options page (see FAQ for more details if necessary).
 4. File storage needs write permissions (once) to wp-content after install to set 
    up the directory used for storage (`wp-content/cache/l10n-cache`). Once set up 
    is finished wp-content should be kept write protected.
 5. If you run multiple WordPress sites on the same host please consult the plugin 
    homepage for more information.

If you have any questions or problems go to: http://devel.kostdoktorn.se/cache-translation-
object

## سوالات متداول

#### Which storage is better / faster?

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.

#### What is APC (Alternative PHP Cache)?

“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.”

It is not usually installed by default.

#### What is SHMOP (Shared Memory)?

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.

On some older systems (and Windows) shared memory may have problems when multiple
languages are cached. (If `Open slots` in the debug storage information keeps decreasing
you should choose a different storage type.)

#### How do I make files writable?

    ```
    https://codex.wordpress.org/Changing_File_Permissions 
    ```

File storage write files to `wp-config/cache/l10n-cache/`. These directories will
be created automatically if `wp-config` is writable at first use. Once these sub-
directories are created `wp-config` should be kept write protected.

#### I want to change where the files are stored

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

## نقد و بررسی‌ها

نقد و بررسی‌ای برای این افزونه یافت نشد.

## توسعه دهندگان و همکاران

“Cache Translation Object” نرم افزار متن باز است. افراد زیر در این افزونه مشارکت
کرده‌اند.

مشارکت کنندگان

 *   [ johanee ](https://profiles.wordpress.org/johanee/)

[ترجمه “Cache Translation Object” به زبان شما.](https://translate.wordpress.org/projects/wp-plugins/cache-translation-object)

### علاقه‌ مند به توسعه هستید؟

[کد را مرور کنید](https://plugins.trac.wordpress.org/browser/cache-translation-object/)،
[مخزن SVN](https://plugins.svn.wordpress.org/cache-translation-object/) را بررسی
کنید، یا از طریق [RSS](https://plugins.trac.wordpress.org/log/cache-translation-object/?limit=100&mode=stop_on_copy&format=rss)
در [گزارش توسعه](https://plugins.trac.wordpress.org/log/cache-translation-object/)
مشترک شوید.

## گزارش تغییرات

#### Version 1.2

 * Whitelist get_locale calls to filter

#### Version 1.1

 * Rewritten to cache multiple locales separately
 * Split out admin functions into separate file
 * Handle old SHM with questionable delete behaviour by relocating as necessary.
 * Add storage debug info link
 * Do not default to any specific storage type, make user choose
 * Tell admin when something is wrong (also better error handling).
 * Added plugin localization
 * Added Swedish translation

#### Version 1.0

 * Initial release

## اطلاعات

 *  نگارش **1.2**
 *  آخرین به‌روزرسانی **17 سال پیش**
 *  نصب‌های فعال **کمتر از 10**
 *  نگارش وردپرس ** 2.8 یا بالاتر **
 *  آزمایش‌شده تا **2.8.5**
 *  زبان
 * [English (US)](https://wordpress.org/plugins/cache-translation-object/)
 * برچسب
 * [cache](https://fa.wordpress.org/plugins/tags/cache/)[caching](https://fa.wordpress.org/plugins/tags/caching/)
   [i18n](https://fa.wordpress.org/plugins/tags/i18n/)[localization](https://fa.wordpress.org/plugins/tags/localization/)
   [performance](https://fa.wordpress.org/plugins/tags/performance/)[translation](https://fa.wordpress.org/plugins/tags/translation/)
 *  [نمایش پیشرفته](https://fa.wordpress.org/plugins/cache-translation-object/advanced/)

## امتیازها

هنوز هیچ نقدی ارسال نشده است.

[بررسی شما](https://wordpress.org/support/plugin/cache-translation-object/reviews/#new-post)

[مشاهدهٔ همهٔ بررسی‌ها](https://wordpress.org/support/plugin/cache-translation-object/reviews/)

## مشارکت کنندگان

 *   [ johanee ](https://profiles.wordpress.org/johanee/)

## پشتیبانی

چیزی برای گفتن دارید؟ نیاز به کمک دارید؟

 [مشاهده انجمن پشتیبانی](https://wordpress.org/support/plugin/cache-translation-object/)