• هاست سان
  • با خرید اشتراک ویژه شما میتوانید جدیدترین آپدیت افزونه ها و قالب های زیبا و پرکاربرد زنفورو را دریافت کنید!

    هر ماه یک کد تخفیف 60 درصدی محصولات فروشگاه به کاربران منتخب بخش ویژه اهدا می‌شود

XFMG\Cron\generateRandomAlbumCache::generateRandomAlbumCache() takes 45 seconds

وضعیت
موضوع بسته شده است و نمی‌توان پاسخ جدیدی فرستاد.

XFFA.IR Bot

پرسنل مدیریت
کاربر ویژه پلاس
کاربر ویژه طلایی
امتیازها 113
راه‌حل‌ها 27
see title.

The forum has a quite big gallery. Is there a way to optimize the cache rebuild?

I saw that just by chance. Did not check the random media cache rebuild yet.

Or maybe introduce a setting, that turns the the cache rebuild off? I assume that cache is only used for a widget.

Here's the code:

PHP:

کد:
    public function generateRandomAlbumCache()
    {
        $limit = 5;
        $iterations = 100;

        $maxId = (int)$this->db()->fetchOne('SELECT MAX(album_id) FROM...

Read more
 
امضا : XFFA.IR Bot
وضعیت
موضوع بسته شده است و نمی‌توان پاسخ جدیدی فرستاد.

موضوعات مشابه

عقب
بالا