Jacob N. Breetvelt on "[Plugin: qTranslate X] get_option behaviour"

ساخت وبلاگ

Well, I am the developer of plugin WP Photo ALbum Plus and have 779 option items. To speed up loading, they are not autoloaded but I use a serialized version of an array with options as 'cached' options.

I perform an integrity check, and noticed that on almost every pageload the integrety of the cached version was corrupted, so the cached version has to be rebuilt. I use a lot of ajax calls, so it tued out to be as follows: the check failed at the first is_admin() load and then at the first !is_admin() load etc.

As plugin developer I expect that get_option() retus the value I put in it. Using your translation of options option fixes it.

At least i know now how it works, this will help me to find a better method.

Thanx for your reply, and for the (almost) perfect plugin, that I recommend to be used to my users.
Topic closed.

WordPress ...
ما را در سایت WordPress دنبال می کنید

برچسب : نویسنده : استخدام کار wpss بازدید : 126 تاريخ : پنجشنبه 9 ارديبهشت 1395 ساعت: 12:39