Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9274187
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T16:17:47+00:00 2026-06-18T16:17:47+00:00

I have a site that have its pages stored in Database as html strings

  • 0

I have a site that have its pages stored in Database as html strings (generated with CKEditor) to enable user to edit them with no HTML knowledge. The site also makes extensive use of images galleries (user requirement so I have no control over it) each page with its gallery. This makes the site very slow. I have read of Yii optimization in Guide and did some query caching which improved load time a bit but it is still slow.

Since it might take as long as month for page to be updated (only when things change) is there a site-wide Yii caching technique to emulate static pages until page have been changed?
I have no control over installing APC or other extensions as I am not admin.

Any optimization idea is welcomed too.

you can see a site here

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T16:17:48+00:00Added an answer on June 18, 2026 at 4:17 pm

    While it is hard to give you a “definitive answer” the easiest thing you could do (next to doing optimizations mentioned at Yii’s Definitive Guide: Performance) is to use page caching

    As you can’t use APC or memcached I suggest you to use a file cache via CFileCache to cache the whole page. As soon as it is updated you should then invalidate the cache via a proper CacheDependency. I’ve used the Flushable cache dependency extension for invalidating a cache using CActiveRecord’s afterSave hook. It is easy to implement and does the job.

    EDIT: Just took a look at your site and judging from the menu you are using Bootstrap (maybe using Yii-Booster?). The site is extremely slow indeed, but that might actually be due to an extension publishing its assets on every request. I once had this exact problem with Yii-Booster publishing assets when in DEBUG mode (back then it even happened when DEBUG mode was disabled)(https://github.com/clevertech/YiiBooster/pull/229).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a django site that servers matplotlib images generated from numbers stored in
I have used my local iis to test the site and now that its
I have a MOSS web site with its virtual directory in IIS. That VD
I have a site that has a /sites/default/files/ directory where user content is typically
I have a paging control on my site that has it's container element set
I have a site that i want to redirect all requests accept for 1
I have a site that allows download or streaming of mp3 files. All the
I have a site that can be accessed both through http (http://mysite.com) and https
I have a site that has an Rss feed, and this feed is consumed
I have a site that can allow me to access the mobile version of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.